Jure
Explore posts from serversNuxt Image: IPX_FILE_NOT_FOUND
I have installed Nuxt Image module which works fine in dev mode, but not on production server.
Production server is Ubuntu / Nginx.
https://domain.com/_ipx/w_32/images/32955/i.jpg
File exists on the server:
I guess this is not problem with Nginx config since I get response from the IPX.
Looks more like IPX can't find image on the server... or is looking for it on the wrong path.
Any help debugging this would be much appreciated!
2 replies
DTDrizzle Team
•Created by Jure on 3/14/2024 in #help
How to use JSON column type?
Hi. I'm new to Drizzle and 'm strugling with JSON column type.
Here is the example:
So far everything looks good. But I'm confused when selecting the JSON column name;
So the problem is that I get nice typescript support when selecting JSON column, because type is passed to
json().$type<>
, but selected "name" is just a string which need to be parsed.
What am I missing?2 replies
How to run Nitro task in Nuxt using cli?
How could I run Nitro taks using cli?
I'm following docs and using command:
pnpm exec nitro task list
But I get this error:
Missing info file: .nitro/nitro.json (is dev server running?)
Dev server is running... But I guess in Nuxt project different path for nitro.json should be used?2 replies
pnpm error when creating new project
Every time I'm creating a new Nuxt project with pnpm:
pnpm dlx nuxi@latest init <project-name>
I'm asked: Which package manager would you like to use?
pnpm
And then I get an error:
After that I just manually run pnpm install
and all dependencies are successfully installed.
But I would still like to get rid of the error... 🙂1 replies
CDCloudflare Developers
•Created by Jure on 9/19/2023 in #pages-help
Is possible to run migrations in Pages build command?
I'm not sure what is the right flow to run D1 migrations... If I understand it correctly so far, you have to:
Push migrations with a command:
npx wrangler d1 migrations apply db-name
as a wrangler command from the local env to make changes in the prod. DB
and then push the changed app code (wich rely on new DB schema) to git.
Shouldn't be a migration run right after the deployment in the "build command" like:
npm run build && npx wrangler d1 migrations apply db-name
Is this possible?
I tried the comamnd and got the error:
After creating CLOUDFLARE_API_TOKEN env var I get this error:
6 replies
Why is updating Nuxt causing Vuetify error?
After updating Nuxt from 3.0.0. to 3.1.2 Vuetify is throwing an error:
This is my test project:
https://codesandbox.io/p/github/juretopolak/nuxt3-tailwind-vuetify/nuxt-update?file=%2FREADME.md
Anyone knows what is the issue here?
2 replies
ESLint required dependencies
Following instructions here: https://github.com/nuxt/eslint-config
I have installed the package with: yarn add -D @nuxtjs/eslint-config-typescript eslint
And then added script: "lint": "eslint ." in package.json
When running "yarn lint" I get this error...
Error: Failed to load plugin '@typescript-eslint' declared in '.eslintrc » @nuxtjs/eslint-config-typescript': Cannot find module 'typescript'
I have installed "yarn add -D typescript" which solved the problem...
But I'm curious... is it okay to have typescript again here as a dependency?
11 replies