Skip to content

Commit

Permalink
Update next.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nowscott authored Oct 10, 2024
1 parent 19d52d9 commit 977753e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
module.exports = {
output: 'export', // 新增的静态导出配置
env: {
NOTION_TOKEN: process.env.NOTION_TOKEN,
DATABASE_ID: process.env.DATABASE_ID,
},
webpack: (config) => {
config.resolve.fallback = {
...config.resolve.fallback,
fs: false, // 确保在浏览器环境中不使用Node.js的'fs'模块
fs: false,
};
return config;
},
Expand Down

0 comments on commit 977753e

Please sign in to comment.