MoonMiners/next.config.js
Joseph Ferano 99bc7a319f Merge feature/api
* Added backend capabilities with SQLite3
* Added routes for Next.js backend
2023-03-19 10:21:19 +07:00

17 lines
335 B
JavaScript

/** @type {import('next').NextConfig} */
const fs = require("fs");
const gameConfigContent = fs.readFileSync("config/game-config.json", "utf-8");
const gameConfig = JSON.parse(gameConfigContent);
const nextConfig = {
experimental: {
appDir: true,
},
env: {
gameConfig: gameConfig,
},
};
module.exports = nextConfig;