diff --git a/apps/web/next.config.js b/apps/web/next.config.js index 1697637..f5f8a9c 100644 --- a/apps/web/next.config.js +++ b/apps/web/next.config.js @@ -3,6 +3,7 @@ const path = require('path'); const runtimeConfig = { appTitle: process.env.APP_TITLE, description: process.env.APP_DESCRIPTION, + basePath: process.env.BASE_PATH, }; /** @type {import('next').NextConfig} */ diff --git a/apps/web/pages/_document.tsx b/apps/web/pages/_document.tsx index 8c839f6..8636be7 100644 --- a/apps/web/pages/_document.tsx +++ b/apps/web/pages/_document.tsx @@ -1,7 +1,8 @@ -import Document, { Head, Html, Main, NextScript } from 'next/document'; import getConfig from 'next/config'; +import Document, { Head, Html, Main, NextScript } from 'next/document'; const { serverRuntimeConfig: config } = getConfig(); +const { basePath = '', description } = config; export default class MyDocument extends Document { render() { @@ -9,13 +10,13 @@ export default class MyDocument extends Document {
- + - - - - - + + + + +