next.config.js 344 B

1234567891011121314
  1. const path = require("path");
  2. const NODE_ENV = process.env.NODE_ENV || "development";
  3. /** @type {import('next').NextConfig} */
  4. const nextConfig = {
  5. // output: "standalone",
  6. webpack: (config, options) => {
  7. config.resolve.alias.data = path.resolve(__dirname, `data/${NODE_ENV}`);
  8. return config;
  9. }
  10. };
  11. module.exports = nextConfig;