tangly1024 / NotionNext

使用 NextJS + Notion API 实现的,支持多种部署方案的静态博客,无需服务器、零门槛搭建网站,为Notion和所有创作者设计。 (A static blog built with NextJS and Notion API, supporting multiple deployment options. No server required, zero threshold to set up a website. Designed for Notion and all creators.)
https://tangly1024.com
MIT License
7.16k stars 9.97k forks source link

[部署失败] 编辑blog.config.js后部署失败 #2601

Open lhtlikeAyaka opened 1 month ago

lhtlikeAyaka commented 1 month ago

描述bug 错误提示

Build error occurred /vercel/path0/blog.config.js:29 LINK: process.env.NEXT_PUBLIC_LINK || 'https://lhtblog.us.kg // 网站地址 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Invalid or unexpected token at internalCompileFunction (node:internal/vm:73:18) at wrapSafe (node:internal/modules/cjs/loader:1274:20) at Module._compile (node:internal/modules/cjs/loader:1320:27) at Module._extensions..js (node:internal/modules/cjs/loader:1414:10) at Module.load (node:internal/modules/cjs/loader:1197:32) at Module._load (node:internal/modules/cjs/loader:1013:12) at Module.require (node:internal/modules/cjs/loader:1225:19) at mod.require (/vercel/path0/node_modules/next/dist/server/require-hook.js:65:28) at require (node:internal/modules/helpers:177:18) at Object. (/vercel/path0/next.config.js:1:19) error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. Error: Command "yarn run build" exited with 1 期望的正常结果 可以正常部署

复现步骤 按照教程部署

环境

ymh0000123 commented 1 month ago

哥们 你后面的单引号被你删除了

错误的

LINK: process.env.NEXT_PUBLIC_LINK || 'https://lhtblog.us.kg/ // 网站地址

正确的

LINK: process.env.NEXT_PUBLIC_LINK || 'https://lhtblog.us.kg/' // 网站地址