diff --git a/README.md b/README.md index cf56b4b..3508c5d 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/next.config.js b/next.config.js index e6c3f04..b9ab37d 100644 --- a/next.config.js +++ b/next.config.js @@ -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$/, }); @@ -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'], }); diff --git a/package.json b/package.json index bcbfeb9..3059e7c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nextjs-starter-kit", - "version": "1.1.5", + "version": "1.1.6", "scripts": { "dev": "next dev", "build": "next build",