Skip to content
This repository was archived by the owner on Jun 29, 2025. It is now read-only.

Commit 239b18c

Browse files
committed
fix: opt out of static site generation to enable publicRuntimeConfig
1 parent a8a5632 commit 239b18c

File tree

3 files changed

+6
-26
lines changed

3 files changed

+6
-26
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ WORKDIR /opt/app
3131
RUN npm i -g dotenv-cli
3232

3333
EXPOSE 3000
34-
CMD cd frontend && dotenv -e .env.development node_modules/.bin/next start & cd backend && npm run prod
34+
CMD cd frontend && dotenv node_modules/.bin/next start & cd backend && npm run prod

frontend/Dockerfile

Lines changed: 0 additions & 25 deletions
This file was deleted.

frontend/src/pages/_app.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,9 @@ function App({ Component, pageProps }: AppProps) {
7676
);
7777
}
7878

79+
// Ops out of static site generation to use publicRuntimeConfig
80+
App.getInitialProps = () => {
81+
return {};
82+
};
83+
7984
export default App;

0 commit comments

Comments
 (0)