Skip to content

Commit

Permalink
Merge pull request #10 from juunini/main
Browse files Browse the repository at this point in the history
Fix path issue
  • Loading branch information
juunini authored Oct 29, 2021
2 parents 281390a + 71841ad commit 554d3e0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ This setting used by [This Repository](https://github.com/sex-request/frontend)
## [ IMPORTANT ] Must Change Here

- `package.json` line 2 - project name
- `next.config.js` line 4 - production url
- `next.config.js` line 4, 5 - production url and path
- `/public/favicon.ico` and `/public/icon-*.png`
- `/public/manifest.json` line 5~9 - application information
- `/pages/_document.tsx` line 10 - lang
Expand Down
5 changes: 3 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/** @type {import('next').NextConfig} */

const isProduction = process.env.NODE_ENV === 'production';
const productionURL = 'https://sex-request.github.io/nextjs-starter-kit/';
const productionURL = 'https://sex-request.github.io';
const productionPath = '/nextjs-starter-kit';
const withMDX = require('@next/mdx')({
extension: /\.mdx$/,
});
Expand All @@ -12,6 +13,6 @@ module.exports = withMDX({
loader: 'imgix',
path: isProduction ? productionURL : 'http://localhost:3000/',
},
assetPrefix: isProduction ? productionURL : '',
assetPrefix: isProduction ? productionPath : '',
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'md', 'mdx'],
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nextjs-starter-kit",
"version": "1.1.5",
"version": "1.1.6",
"scripts": {
"dev": "next dev",
"build": "next build",
Expand Down

0 comments on commit 554d3e0

Please sign in to comment.