Skip to content

Commit

Permalink
fix: opt out of static site generation to enable publicRuntimeConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
stonith404 committed Oct 18, 2022
1 parent a8a5632 commit 239b18c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 26 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ WORKDIR /opt/app
RUN npm i -g dotenv-cli

EXPOSE 3000
CMD cd frontend && dotenv -e .env.development node_modules/.bin/next start & cd backend && npm run prod
CMD cd frontend && dotenv node_modules/.bin/next start & cd backend && npm run prod
25 changes: 0 additions & 25 deletions frontend/Dockerfile

This file was deleted.

5 changes: 5 additions & 0 deletions frontend/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,9 @@ function App({ Component, pageProps }: AppProps) {
);
}

// Ops out of static site generation to use publicRuntimeConfig
App.getInitialProps = () => {
return {};
};

export default App;

0 comments on commit 239b18c

Please sign in to comment.