atinux / atidone

A full-stack application with Auth, SSR and SQL, running on the edge with Nuxt.
https://todos.nuxt.dev
MIT License
730 stars 73 forks source link

Broken production build #4

Closed fayazara closed 1 year ago

fayazara commented 1 year ago

I connected D1 in settings and it throws this error in the console, any idea, what's causing this?

Screenshot 18-05 at 10

Demo - https://nuxt-todos-edge-5ij.pages.dev/ Code - https://github.com/fayazara/nuxt-todos-edge/

fayazara commented 1 year ago

Works perfectly in local btw

atinux commented 1 year ago

You may want to add copy/paste the migrations in your D1 database in the console:

CleanShot 2023-05-18 at 12 03 00@2x
fayazara commented 1 year ago

How do I do this?

atinux commented 1 year ago

You create a D1 database, open the console of it.

Then copy the content of https://github.com/Atinux/nuxt-todos-edge/blob/main/server/db/migrations/0000_sloppy_starfox.sql in it

fayazara commented 1 year ago

Worked, thanks !!