pinefin
pinefin
NNuxt
Created by pinefin on 3/4/2025 in #❓・help
custom nitro plugin is not running in cloudflare-pages
i developed my whole website around that
7 replies
NNuxt
Created by pinefin on 3/4/2025 in #❓・help
custom nitro plugin is not running in cloudflare-pages
well crap
7 replies
NNuxt
Created by pinefin on 3/4/2025 in #❓・help
how to use node:crpyto in a cloudflare-pages application
i ended up going with this, thank you!
6 replies
NNuxt
Created by pinefin on 3/3/2025 in #❓・help
NuxtHub failed deployment
@kapa.ai this looks like its my issue.
[plugin node-resolve] Could not resolve import "@mswjs/interceptors/presets/node" in /Users/brayden/Desktop/projects/virtue-marketplace/node_modules/.pnpm/[email protected]/node_modules/nock/lib/intercept.js using exports defined in /Users/brayden/Desktop/projects/virtue-marketplace/node_modules/.pnpm/@[email protected]/node_modules/@mswjs/interceptors/package.json.
[plugin node-resolve] Could not resolve import "@mswjs/interceptors/presets/node" in /Users/brayden/Desktop/projects/virtue-marketplace/node_modules/.pnpm/[email protected]/node_modules/nock/lib/recorder.js using exports defined in /Users/brayden/Desktop/projects/virtue-marketplace/node_modules/.pnpm/@[email protected]/node_modules/@mswjs/interceptors/package.json.
[plugin node-resolve] Could not resolve import "@mswjs/interceptors/presets/node" in /Users/brayden/Desktop/projects/virtue-marketplace/node_modules/.pnpm/[email protected]/node_modules/nock/lib/intercept.js using exports defined in /Users/brayden/Desktop/projects/virtue-marketplace/node_modules/.pnpm/@[email protected]/node_modules/@mswjs/interceptors/package.json.
[plugin node-resolve] Could not resolve import "@mswjs/interceptors/presets/node" in /Users/brayden/Desktop/projects/virtue-marketplace/node_modules/.pnpm/[email protected]/node_modules/nock/lib/recorder.js using exports defined in /Users/brayden/Desktop/projects/virtue-marketplace/node_modules/.pnpm/@[email protected]/node_modules/@mswjs/interceptors/package.json.
19 replies
NNuxt
Created by pinefin on 3/3/2025 in #❓・help
NuxtHub failed deployment
@kapa.ai would this be alright for the nuxthub deployment?
export default defineNuxtConfig({
compatibilityDate: '2024-11-01',
devtools: { enabled: true },
modules: [
'@nuxthub/core',
'@sidebase/nuxt-auth',
'@nuxtjs/tailwindcss'
],
alias: {
'string_decoder': 'string_decoder/',
},
hub: {
database: true,
},
components: [
{ path: '~/components', pathPrefix: true },
],
watchers: {
webpack: {
ignored: ['**/server/plugins/**']
}
},
auth: {
isEnabled: true,
globalAppMiddleware: true,
originEnvKey: 'AUTH_ORIGIN',
baseURL: 'http://localhost:3000/api/auth',
provider: {
type: 'local',
endpoints: {
signIn: { path: '/login', method: 'post' },
signUp: { path: '/register', method: 'post' },
getSession: { path: '/session', method: 'get' },
},
session: {
dataType: { //subject to change
id: 'string | number',
username: 'string',
},
},
token: {
signInResponseTokenPointer: '/token',
type: 'Bearer',
cookieName: 'auth.token',
headerName: 'Authorization',
maxAgeInSeconds: 21600,
sameSiteAttribute: 'lax',
cookieDomain: ''
},
},
},
nitro: {
preset: 'cloudflare-pages',
},
})
export default defineNuxtConfig({
compatibilityDate: '2024-11-01',
devtools: { enabled: true },
modules: [
'@nuxthub/core',
'@sidebase/nuxt-auth',
'@nuxtjs/tailwindcss'
],
alias: {
'string_decoder': 'string_decoder/',
},
hub: {
database: true,
},
components: [
{ path: '~/components', pathPrefix: true },
],
watchers: {
webpack: {
ignored: ['**/server/plugins/**']
}
},
auth: {
isEnabled: true,
globalAppMiddleware: true,
originEnvKey: 'AUTH_ORIGIN',
baseURL: 'http://localhost:3000/api/auth',
provider: {
type: 'local',
endpoints: {
signIn: { path: '/login', method: 'post' },
signUp: { path: '/register', method: 'post' },
getSession: { path: '/session', method: 'get' },
},
session: {
dataType: { //subject to change
id: 'string | number',
username: 'string',
},
},
token: {
signInResponseTokenPointer: '/token',
type: 'Bearer',
cookieName: 'auth.token',
headerName: 'Authorization',
maxAgeInSeconds: 21600,
sameSiteAttribute: 'lax',
cookieDomain: ''
},
},
},
nitro: {
preset: 'cloudflare-pages',
},
})
19 replies
NNuxt
Created by pinefin on 3/3/2025 in #❓・help
NuxtHub failed deployment
@kapa.ai
✔ 19 new static assets uploaded (263 kB)
ℹ 23 static assets (273 kB / 101 kB gzip) 10:49:14 AM
ℹ 116 server files (1.88 MB / 562 kB gzip)... 10:49:14 AM
✔ Found 3 database migrations on test-nuxt
ℹ No pending database migrations to apply. 10:49:16 AM
✖ Failed to deploy test-nuxt to production.

ERROR Failed to publish your Function. Got error: Uncaught Type
✔ 19 new static assets uploaded (263 kB)
ℹ 23 static assets (273 kB / 101 kB gzip) 10:49:14 AM
ℹ 116 server files (1.88 MB / 562 kB gzip)... 10:49:14 AM
✔ Found 3 database migrations on test-nuxt
ℹ No pending database migrations to apply. 10:49:16 AM
✖ Failed to deploy test-nuxt to production.

ERROR Failed to publish your Function. Got error: Uncaught Type
19 replies
NNuxt
Created by pinefin on 2/14/2025 in #❓・help
run serverside code on startup
ok well i forgot that pinia is a vue component usage, i can just make a normal store
20 replies
NNuxt
Created by pinefin on 2/14/2025 in #❓・help
run serverside code on startup
@kapa.ai i'm trying to use it in my server code, is the usage any different?
20 replies
NNuxt
Created by pinefin on 2/14/2025 in #❓・help
run serverside code on startup
@kapa.ai ok so now how would i use getActivePinia? since we dont have a main.ts, how would i use app.use that it tells me to use
20 replies
NNuxt
Created by pinefin on 2/14/2025 in #❓・help
run serverside code on startup
@kapa.ai where would i place this file?
20 replies