Ai
1 Star 0 Fork 0

Lsy/Reminder-Tauri

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
next.config.mjs 717 Bytes
一键复制 编辑 原始数据 按行查看 历史
Lsy 提交于 2024-09-17 22:51 +08:00 . fix(System tary): remove duplicate icon
const isProd = process.env.NODE_ENV === 'production';
const internalHost = process.env.TAURI_DEV_HOST || 'localhost';
/** @type {import('next').NextConfig} */
const nextConfig = {
// 确保 Next.js 使用 SSG 而不是 SSR
// https://nextjs.org/docs/pages/building-your-application/deploying/static-exports
output: 'export',
// 注意:在 SSG 模式下使用 Next.js 的 Image 组件需要此功能。
// 请参阅 https://nextjs.org/docs/messages/export-image-api 了解不同的解决方法。
images: {
unoptimized: true,
},
// 配置 assetPrefix,否则服务器无法正确解析您的资产。
assetPrefix: isProd ? null : `http://${internalHost}:3000`,
};
export default nextConfig;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/longsiyu/reminder-tauri.git
git@gitee.com:longsiyu/reminder-tauri.git
longsiyu
reminder-tauri
Reminder-Tauri
master

搜索帮助