Skip to content

Commit

Permalink
feat: use base root
Browse files Browse the repository at this point in the history
  • Loading branch information
dadiorchen committed Apr 21, 2022
1 parent c1fc976 commit ede7036
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ module.exports = {
},
];
},
basePath: process.env.NEXT_PUBLIC_BASE,
};
2 changes: 1 addition & 1 deletion src/components/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { makeStyles } from 'models/makeStyles';
import Link from './Link';
import useEmbed from '../hooks/useEmbed';

const backgroundImage = '/images/bg.png';
const backgroundImage = `${process.env.NEXT_PUBLIC_BASE}/images/bg.png`;
const useStyles = makeStyles()((theme) => ({
pageContainer: {
background: `center / cover no-repeat url(${backgroundImage})`,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import MenuBar from 'images/MenuBar';
import { makeStyles } from 'models/makeStyles';
import Link from './Link';

const iconLogo = '/images/greenstand_logo.svg';
const iconLogo = `${process.env.NEXT_PUBLIC_BASE}/images/greenstand_logo.svg`;

const useStyles = makeStyles()((theme) => ({
navContainer: {
Expand Down

0 comments on commit ede7036

Please sign in to comment.