Skip to content

Commit

Permalink
remove base path
Browse files Browse the repository at this point in the history
  • Loading branch information
gameofby committed Jan 12, 2024
1 parent ec335cb commit c1ef484
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 2 additions & 4 deletions components/Image.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import NextImage, { ImageProps } from 'next/image'

const Image = ({ src, ...rest }: ImageProps) => (
<NextImage src={`/timelxy.github.io${src}`} {...rest} />
)
const Image = ({ ...rest }: ImageProps) => <NextImage {...rest} />

export default Image
export default Image
1 change: 0 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ module.exports = () => {
eslint: {
dirs: ['app', 'components', 'layouts', 'scripts'],
},
basePath: "/timelxy.github.io",
output: 'export',
images: {
remotePatterns: [
Expand Down

0 comments on commit c1ef484

Please sign in to comment.