Skip to content

Commit

Permalink
appDir
Browse files Browse the repository at this point in the history
  • Loading branch information
sinamics committed Aug 12, 2023
1 parent 21d7bfa commit ffed341
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 21 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ RUN chmod u+x init-db.sh
EXPOSE 3000

ENV PORT 3000
ENV HOSTNAME 127.0.0.1

ENTRYPOINT ["/app/init-db.sh"]
CMD ["node", "server.js"]
43 changes: 23 additions & 20 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,28 @@

/** @type {import("next").NextConfig} */
const config = {
reactStrictMode: true,
swcMinify: true,
// https://nextjs.org/docs/advanced-features/output-file-tracing
output: "standalone",
/**
* If you have the "experimental: { appDir: true }" setting enabled, then you
* must comment the below `i18n` config out.
*
* @see https://github.com/vercel/next.js/issues/41980
*/
i18n: {
defaultLocale: "en",
locales: ["en", "no", "zh", "es"],
},
images: {
domains: ["pbs.twimg.com"],
},
eslint: {
ignoreDuringBuilds: true,
},
experimental: {
appDir: false,
},
reactStrictMode: true,
swcMinify: true,
// https://nextjs.org/docs/advanced-features/output-file-tracing
output: "standalone",
/**
* If you have the "experimental: { appDir: true }" setting enabled, then you
* must comment the below `i18n` config out.
*
* @see https://github.com/vercel/next.js/issues/41980
*/
i18n: {
defaultLocale: "en",
locales: ["en", "no", "zh", "es"],
},
images: {
domains: ["pbs.twimg.com"],
},
eslint: {
ignoreDuringBuilds: true,
},
};
export default config;

0 comments on commit ffed341

Please sign in to comment.