gabrielstuff
gabrielstuff
NNuxt
Created by gabrielstuff on 1/19/2025 in #❓・help
checking routes with i18n - report usage
Hello, Does anyone have a method to verify all the routes for pages that use defineI18nRoute and could generate something like this:
defineI18nRoute({
paths: {
en: '/search',
fr: '/rechercher'
}
})
defineI18nRoute({
paths: {
en: '/search',
fr: '/rechercher'
}
})
I have 20 different pages, including pages with dynamic IDs, and some that does not rely on defineI18nRoute. I’d like to check all possible route combinations in a single report. Thanks !
6 replies
NNuxt
Created by gabrielstuff on 1/9/2025 in #❓・help
Content Management for App local
Hey there! I'm in the middle of a project where we use Prismic to handle most of our website content. However, we also have text content in the UI of the webapp that needs to be edited. With the project evolving quickly, we often need to update various text elements like button text, headers, subheaders, and descriptions, as well as translate them. I'm wondering if you have any ready-made solutions that you're using for this kind of scenario. At first, I thought about using Prismic to manage the app content too, but I'm looking for other options that might work better/faster Here are my key requirements: 1. The content team should be able to edit any content from anywhere without needing to involve the dev team. 2. The content team shouldn't be able to break anything (e.g., no direct JSON editing or similar actions). 3. Ideally, the content should be cached, so the content team can update it without requiring a rebuild. They should only need to invalidate the cache once to make the new content available to all users, without each user having to fetch the updated ui webapp strings individually. Any insights or recommendations would be greatly appreciated! Thanks!
11 replies
NNuxt
Created by gabrielstuff on 12/16/2024 in #❓・help
Build Nuxt for CF Worker and postgre
Hello, I'm trying to deploy a nuxt 3 app on CF workers which use postgre module and even after using compatibility_flags = [ "nodejs_compat" ] or compatibility_flags = ["nodejs_compat_v2"] in the wrangler.toml I hit the error :
Error: Cannot resolve "cloudflare:sockets" from "node_modules/.pnpm/[email protected]/node_modules/postgres/cf/polyfills.js" and externals are not allowed!
Error: Cannot resolve "cloudflare:sockets" from "node_modules/.pnpm/[email protected]/node_modules/postgres/cf/polyfills.js" and externals are not allowed!
Any idea on how to fix this ?
6 replies