我正在关注 https://vercel.com/templates/next.js/subscription-starter 并使用 Vercel 按钮(Nextjs 应用程序)进行部署。
我有两个问题:
1)跑步时
pnpm supabase:link
我得到Warning: Local config differs from linked project. Try updating supabase/config.toml
完整日志:
pnpm supabase:link
> @ supabase:link /Repos/subscription-starter
> npx supabase link
Selected project: mjbtktcdhxsrshk
Enter your database password (or leave blank to skip):
Connecting to remote database...
Finished supabase link.
Warning: Local config differs from linked project. Try updating supabase/config.toml
[api]
enabled = true
port = 54321
schemas = ["public", "graphql_public"]
extra_search_path = ["public", "extensions"]
max_rows = 1000
2)跑步时:
pnpm supabase:pull
我明白了
Setting up initial schema....
v1.6.8: Pulling from supabase/storage-api
a258b2a6b59a: Pull complete
...
Digest: sha256:8b...
Status: Downloaded newer image for public.ecr.aws/supabase/storage-api:v1.6.8
v2.156.0: Pulling from supabase/gotrue
690e87867337: Pull complete
...
Digest: sha256:45...
Status: Downloaded newer image for public.ecr.aws/supabase/gotrue:v2.156.0
Applying migration 20230530034630_init.sql...
3.0.1663481299: Pulling from supabase/migra
c30352492317: Pull complete
...
Digest: sha256:56
Status: Downloaded newer image for public.ecr.aws/supabase/migra:3.0.16634
No schema changes found
The auth and storage schemas are excluded. Run supabase db pull --schema auth,storage again to diff them.
ELIFECYCLE Command failed with exit code 1.
我尝试运行
supabase db pull --schema auth,storage
,这导致了很多问题。这是我的第二次尝试,所以不确定到底是什么问题。
我是否按照说明操作并运行
supabase db pull --schema auth,storage
或转到下一个说明:
pnpm supabase:generate-seed
pnpm supabase:reset
我在创建项目时检查了“添加种子数据”,但我在任何表中都没有看到任何行(客户、价格、产品、订阅、用户)
有什么线索可以解决这个问题吗?我正在经历类似的事情。 Supabase 存储库上的一些已解决的问题 (https://github.com/supabase/cli/issues/2539) 提到此问题已修复,因此它可能与其他问题有关。