Jure
Jure
Explore posts from servers
NNuxt
Created by Jure on 8/22/2024 in #❓・help
Nuxt Image: IPX_FILE_NOT_FOUND
// ./.output/server/node_modules/ipx/dist/shared/ipx.b027cc1c.mjs
const filePath = join(dir, id)
console.log(filePath) <---
// ./.output/server/node_modules/ipx/dist/shared/ipx.b027cc1c.mjs
const filePath = join(dir, id)
console.log(filePath) <---
Output: /home/user/domain.com/.output/public/images/32934/i.jpg Like I've suspected... IPX is looking for image in the wrong dir (.output). How to fix this?
2 replies
DTDrizzle Team
Created by Jure on 3/14/2024 in #help
How to use JSON column type?
No description
2 replies
DTDrizzle Team
Created by Jure on 2/29/2024 in #help
MySQL select().from() type
----- const users = await db.select().from(models.users).execute() .execute() fixed the problem 🙂
5 replies
DTDrizzle Team
Created by Jure on 2/29/2024 in #help
MySQL select().from() type
const users = await db.select().from(models.users).execute() .execute() fixed the problem 🙂
5 replies
DTDrizzle Team
Created by Jure on 2/29/2024 in #help
MySQL select().from() type
Not MySqlSelectBase.
5 replies
DTDrizzle Team
Created by Jure on 2/29/2024 in #help
MySQL select().from() type
I need such "return" type: [] | Promise<{ row object }>
5 replies
CDCloudflare Developers
Created by Sylphritz on 9/19/2023 in #pages-help
Is there a way to connect to D1 locally in, say, a Nuxt.js app in dev mode?
@sylphritz do you mind asking you how do you apply migrations on production D1? From local CLI and wrangler command npx wrangler d1 migrations apply {dbname}? I'm trying to apply migrations in the CF Pages "deploy script" like npm run build && npx wrangler d1 migrations apply {dbname} so migrations would be executed right after deployment / pushing code.
27 replies
CDCloudflare Developers
Created by Sylphritz on 9/19/2023 in #pages-help
Is there a way to connect to D1 locally in, say, a Nuxt.js app in dev mode?
But the biggest issue is that unless you build the project first(or use a binding proxy), then the dev process won't have access to any bindings.
I'm not sure if I understand you correctly... since I'm also a newbie to D1 and the whole development process... but when I run pages dev --d1=DB -- npm run dev I have access to D1 binding --d1=DB and can use local DB over the defined binding.
27 replies
CDCloudflare Developers
Created by Sylphritz on 9/19/2023 in #pages-help
Is there a way to connect to D1 locally in, say, a Nuxt.js app in dev mode?
True, it already persists in the .wrangler/ dir but with "random" path to the db.sqlite. For me is convenient to have manually defined path since I'm using Drizzle Studio https://orm.drizzle.team/drizzle-studio/overview - to be able to define path to DB file in the drizzle.config.ts and then browse the DB with simple command npx drizzle-kit studio.
27 replies
CDCloudflare Developers
Created by Sylphritz on 9/19/2023 in #pages-help
Is there a way to connect to D1 locally in, say, a Nuxt.js app in dev mode?
It would... isn't that what you want for local development?
27 replies
CDCloudflare Developers
Created by Sylphritz on 9/19/2023 in #pages-help
Is there a way to connect to D1 locally in, say, a Nuxt.js app in dev mode?
I'm using this command: npx wrangler pages dev --local --persist-to=./db.sqlite --d1=DB -- npm run dev
27 replies
NNuxt
Created by Jure on 2/3/2023 in #❓・help
Error after upgrading Nuxt
https://github.com/vuetifyjs/vuetify/issues/16593
Seems to be a problem introduced with Vite 4.1.0+, I've bumped back to v4.0.4 and it works fine.
I guess this is also causing me the problem. When upgrading Nuxt to the latest version, it also upgraded its dependency: vite "~3.2.4" > vite "~4.1.1" A Vuetify's core team member just opened an issue about this: https://github.com/vitejs/vite/issues/11947 I guess I'll just have to wait for the bug fix before upgrading Nuxt or what else can I do? 🙂 @Fabian B. thanks for your feedbacks!
8 replies
NNuxt
Created by Jure on 2/3/2023 in #❓・help
Error after upgrading Nuxt
This is my "testing" project, if you see why is updating Nuxt causing issue with Vuetify.
8 replies
NNuxt
Created by Jure on 2/3/2023 in #❓・help
Error after upgrading Nuxt
Hi. Thanks for your response. I tried exactly as you suggested and got the same result.
8 replies
NNuxt
Created by Jure on 12/17/2022 in #❓・help
ESLint required dependencies
@harlan agree, docs could be a lot better... But it is clear about this: If you're using TypeScript, follow Usage section by replacing @nuxtjs/eslint-config by @nuxtjs/eslint-config-typescript. That's why I installed this package and asked this question 🙂
11 replies