nuomiphp
正在加载…
请使用更现代的浏览器并启用 JavaScript 以获得最佳浏览体验。
加载论坛时出错,请强制刷新页面重试。
分享我们基于 Next.js 的开源 SaaS 开发模板🚀
tianzx
lilei2023
是的,我们主要参考了 shadcn's Taxonomy and t3-oss's create-t3-turbo 这两个项目,感谢您的关注🙏
hooych
太棒啦
tianzx
hooych
十分感谢您的关注🙏
tomdddd
tianzx
目前基于 mdx 和 mdx-remote 魔改了下,但是确实没有 contentlayer 方便
isno
这是干啥的啊? 没看懂。打开 demo ,里面咋是一个 k8s 集群呢?
tianzx
isno
主要是给初创公司和个人开发者提供一个基于 Next.js 快速开发模板,demo 是我们用来展示的这套技术默认启动后的样子,k8s 集群是我们展示一个默认的增删改查的实现,感谢关注🙏
tianzx
isno
很早就关注了您的 theByteBook ,在做 k8s 全套解决方案的时候学习到了不少东西,再次感谢🙏
8520ccc
跑不起来
tianzx
8520ccc
具体的报错有吗,项目强制依赖数据库,可以看下是这个原因吗,感谢关注🙏
8520ccc
tianzx
数据库设置了的,执行了后还可以看到数据库表的结构都建立好了,等会发报错吧
convolution
登录有支持谷歌么?
tianzx
convolution
支持的,GitHubProvider({ clientId: env.GITHUB_CLIENT_ID, clientSecret: env.GITHUB_CLIENT_SECRET, }), 把这个换成对应 Google 的,或者加进去同时提供就可以了,感谢关注🙏
8520ccc
root@code-server /saas# bun run build
$ turbo build
• Packages in scope: @saasfly/api, @saasfly/auth, @saasfly/common, @saasfly/db, @saasfly/eslint-config, @saasfly/nextjs, @saasfly/prettier-config, @saasfly/stripe, @saasfly/tailwind-config, @saasfly/typescript-config, @saasfly/ui
• Running build in 11 packages
• Remote caching disabled
@saasfly/nextjs:build: cache miss, executing 12d13155ec2e6d30
@saasfly/nextjs:build: $ contentlayer build && bun with-env next build
@saasfly/nextjs:build: Generated 9 documents in .contentlayer
@saasfly/nextjs:build: TypeError: The "code" argument must be of type number. Received an instance of Object
@saasfly/nextjs:build: at process.set [as exitCode] (node:internal/bootstrap/node:123:9)
@saasfly/nextjs:build: at Cli.runExit (/node_modules/clipanion/lib/advanced/Cli.js:232:26)
@saasfly/nextjs:build: at run (file:///node_modules/@contentlayer/cli/src/index.ts:39:3)
@saasfly/nextjs:build: at main (/node_modules/contentlayer/bin/cli.cjs:5:3) {
@saasfly/nextjs:build: code: 'ERR_INVALID_ARG_TYPE'
@saasfly/nextjs:build: }
@saasfly/nextjs:build: $ dotenv -e ../../.env.local -- next build
@saasfly/nextjs:build: ▲ Next.js 14.0.3
@saasfly/nextjs:build:
@saasfly/nextjs:build: ✓ Creating an optimized production build
@saasfly/nextjs:build: ✓ Compiled successfully
@saasfly/nextjs:build: Skipping validation of types
@saasfly/nextjs:build: Skipping linting
Collecting page data ..sa [VercelPostgresError]: VercelPostgresError - 'invalid_connection_string': This connection string is meant to be used with a direct connection. Make sure to use a pooled connection string or try `createClient()` instead.
@saasfly/nextjs:build: at su (/apps/nextjs/.next/server/chunks/406.js:18:5468)
@saasfly/nextjs:build: at sg (/apps/nextjs/.next/server/chunks/406.js:18:7411)
@saasfly/nextjs:build: at 15491 (/apps/nextjs/.next/server/app/api/webhooks/stripe/route.js:1:13596)
@saasfly/nextjs:build: at t (/apps/nextjs/.next/server/webpack-runtime.js:1:128)
@saasfly/nextjs:build: at 36577 (/apps/nextjs/.next/server/app/api/webhooks/stripe/route.js:1:14487)
@saasfly/nextjs:build: at t (/apps/nextjs/.next/server/webpack-runtime.js:1:128)
@saasfly/nextjs:build: at 75138 (/apps/nextjs/.next/server/app/api/webhooks/stripe/route.js:1:1028)
@saasfly/nextjs:build: at t (/apps/nextjs/.next/server/webpack-runtime.js:1:128)
@saasfly/nextjs:build: at r (/apps/nextjs/.next/server/app/api/webhooks/stripe/route.js:1:17593)
@saasfly/nextjs:build: at /apps/nextjs/.next/server/app/api/webhooks/stripe/route.js:1:17628 {
@saasfly/nextjs:build: code: 'invalid_connection_string'
@saasfly/nextjs:build: }
> Build error occurred
Error: Failed to collect page data for /api/webhooks/stripe
@saasfly/nextjs:build: at /node_modules/next/dist/build/utils.js:1217:15
@saasfly/nextjs:build: at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
@saasfly/nextjs:build: type: 'Error'
@saasfly/nextjs:build: }
@saasfly/nextjs:build: Collecting page data .error: script "with-env" exited with code 1
@saasfly/nextjs:build: error: script "build" exited with code 1
@saasfly/nextjs:build: ERROR: command finished with error: command (/apps/nextjs) /root/.bun/bin/bun run build exited (1)
@saasfly/nextjs#build: command (/apps/nextjs) /root/.bun/bin/bun run build exited (1)
Tasks: 0 successful, 1 total
Cached: 0 cached, 1 total
Time: 5.326s
Failed: @saasfly/nextjs#build
ERROR run failed: command exited (1)
error: script "build" exited with code 1
tianzx
8520ccc
#32 你的.env.local 中的 POSTGRES_URL= 有配置正确吗 ? vercel 创建的 postgres://default:****@*******.us-east-1.aws.neon.tech:5432/verceldb?sslmode=require 大概是像这个样子
zephyr1
提个建议
zephyr1
不应该叫 Country
tianzx
zephyr1
#35 感谢指出,我现在改一下🙏
zephyr1
tianzx
#36 还有个疑问,点击创建新的集群按钮后,即使我没有点击最后的 submit 按钮,控制台也会出现新的 Cluster ,不知道这里的逻辑是否正确。
tianzx
zephyr1
#37 为了方便起见,会在 create 的时候预先创建一部分默认的数据,当用户打开的时候就只需要修改自己需要的部分了,只是为了展示一种不同的实现,您可以根据自己的需求直接修改🙏
limuen
fork 了,空了👀
tianzx
limuen
感谢您的关注,期待您的反馈🙏
« 上一页
下一页 »