KWAC
KWAC
Explore posts from servers
CDCloudflare Developers
Created by KWAC on 7/31/2024 in #d1-database
I'm using nuxt + drizzle orm +
I am running my Nuxt application locally, but it is configured to connect to a remote Cloudflare D1 database
2 replies
CDCloudflare Developers
Created by KWAC on 7/30/2024 in #workers-help
Error after running command - npx wrangler pages deploy dist/ error happens
In the
preset: cloudfare-pages
preset: cloudfare-pages
I used nitro-cloudfare-dev instead of cloudfare-pages but I suddenly started getting error with that (Cannot read properties of undefined (reading '$production'))
3 replies
CDCloudflare Developers
Created by KWAC on 7/30/2024 in #workers-help
Error after running command - npx wrangler pages deploy dist/ error happens
here's my nuxt.config.js
import { defineNuxtConfig } from 'nuxt/config'


export default defineNuxtConfig({
ssr: true,

nitro: {
preset: 'cloudflare-pages',
},

modules: [
'@nuxtjs/tailwindcss',
'@vuesax-alpha/nuxt',
'@nuxt/image',
'nuxt-gtag',
'nuxt-multi-tenancy',
],

multiTenancy: {
tenantDynamicRoute: 'site',
rootDomains: ["localhost:3000", "taskerdata.com"],
sites: ['worker', 'requester', 'blog']
},


gtag: {
id: 'G-KV3QMHHZJ4'
},

plugins: [
'~/plugins/loading.js',
'~/plugins/recaptcha.js'
],



image: {
dir: 'assets/images'
},

css: [
'/assets/css/main.css',
'/node_modules/flag-icons/css/flag-icons.min.css',
'/node_modules/vuesax-alpha/theme-chalk/vs-loading.css'
],



compatibilityDate: '2024-07-30',
})
import { defineNuxtConfig } from 'nuxt/config'


export default defineNuxtConfig({
ssr: true,

nitro: {
preset: 'cloudflare-pages',
},

modules: [
'@nuxtjs/tailwindcss',
'@vuesax-alpha/nuxt',
'@nuxt/image',
'nuxt-gtag',
'nuxt-multi-tenancy',
],

multiTenancy: {
tenantDynamicRoute: 'site',
rootDomains: ["localhost:3000", "taskerdata.com"],
sites: ['worker', 'requester', 'blog']
},


gtag: {
id: 'G-KV3QMHHZJ4'
},

plugins: [
'~/plugins/loading.js',
'~/plugins/recaptcha.js'
],



image: {
dir: 'assets/images'
},

css: [
'/assets/css/main.css',
'/node_modules/flag-icons/css/flag-icons.min.css',
'/node_modules/vuesax-alpha/theme-chalk/vs-loading.css'
],



compatibilityDate: '2024-07-30',
})
3 replies