𝖋𝖔𝖈𝖚𝖘
𝖋𝖔𝖈𝖚𝖘
TTCTheo's Typesafe Cult
Created by 𝖋𝖔𝖈𝖚𝖘 on 9/19/2024 in #questions
?CloudFlare - `Validating asset` "Pages only supports files up to 25 MiB in size"
Basic T3 / tRPC + Tw + R3F And I do have extensive Asset Images and content.json List, Located within the public folder, But besides that all I have is one basic welcome Page, and one simple THREE Canvas Page.
08:44:04.078 (Static) prerendered as static content
08:44:04.078 ƒ (Dynamic) server-rendered on demand
08:44:04.078
08:44:04.121 Finished
08:44:04.122 Note: No functions dir at /functions found. Skipping.
08:44:04.122 Validating asset output directory
08:44:05.235
08:44:05.347 [ERROR] Error: Pages only supports files up to 25 MiB in size
08:44:05.347
08:44:05.347 cache/webpack/client-production/0.pack is 48.1 MiB in size
08:44:04.078 (Static) prerendered as static content
08:44:04.078 ƒ (Dynamic) server-rendered on demand
08:44:04.078
08:44:04.121 Finished
08:44:04.122 Note: No functions dir at /functions found. Skipping.
08:44:04.122 Validating asset output directory
08:44:05.235
08:44:05.347 [ERROR] Error: Pages only supports files up to 25 MiB in size
08:44:05.347
08:44:05.347 cache/webpack/client-production/0.pack is 48.1 MiB in size
What Can I do?
7 replies
TTCTheo's Typesafe Cult
Created by 𝖋𝖔𝖈𝖚𝖘 on 9/14/2024 in #questions
DB Errors Init on Login for `create-t3-app` w/ Prisma + NextAuth
For me, it was returning this Error from Prisma:
The table `main.Session` does not exist in the current database.
The table `main.Session` does not exist in the current database.
It was not clear if there was any additional Init' Setup, but this is what I found out the hard way. It seems that the Session model is defined in your Prisma schema but the corresponding table has not been created in your SQLite database. To resolve this issue, you can follow these steps: 1. Run Migrations: Ensure that your database schema is up to date with your Prisma schema. You can do this by running the following command:
npx prisma migrate dev --name init
npx prisma migrate dev --name init
This command will create the necessary tables in your database based on your Prisma schema. 2. Push Schema Changes: If you are not using migrations and just want to push the current schema to the database, you can use:
npx prisma db push
npx prisma db push
3. Check Database Connection: Ensure that your DATABASE_URL in the .env file is correctly pointing to your SQLite database. 4. Prisma Studio: You can also use Prisma Studio to visually inspect your database and confirm that the Session table has been created:
npx prisma studio
npx prisma studio
After performing these steps, the Session table should exist in your database, and the error should be resolved.
2 replies