pinefin
pinefin
NNuxt
Created by pinefin on 3/4/2025 in #❓・help
custom nitro plugin is not running in cloudflare-pages
i have a custom nitro plugin, is not running in cloudflare-pages.
import { accountManager } from "~/server/utils/user/accountUtils";

export default defineNitroPlugin((nitroApp) => {
onHubReady(async () => {
accountManager.setup();
});
});
import { accountManager } from "~/server/utils/user/accountUtils";

export default defineNitroPlugin((nitroApp) => {
onHubReady(async () => {
accountManager.setup();
});
});
this is all it does, inside of the accountManager creates a interval that ticks and handles everything. im not sure if this is possible or not in pages but
7 replies
NNuxt
Created by pinefin on 3/4/2025 in #❓・help
how to use node:crpyto in a cloudflare-pages application
how to use node:crpyto in a cloudflare-pages application
6 replies
NNuxt
Created by pinefin on 3/3/2025 in #❓・help
NuxtHub failed deployment
I can't seem to figure out what this error means, and how to fix it
Error: Error while publishing deployment: "Error: Failed to publish your Function. Got error: Uncaught TypeError: Object prototype may only be an Object or null: undefined\n at chunks/nitro/nitro.mjs:13:87283 in Tn.exports\n at chunks/nitro/nitro.mjs:13:470601 in require_stream_readable\n at chunks/nitro/nitro.mjs:13:486480\n at chunks/nitro/nitro.mjs:13:486746\n"
Error: Error while publishing deployment: "Error: Failed to publish your Function. Got error: Uncaught TypeError: Object prototype may only be an Object or null: undefined\n at chunks/nitro/nitro.mjs:13:87283 in Tn.exports\n at chunks/nitro/nitro.mjs:13:470601 in require_stream_readable\n at chunks/nitro/nitro.mjs:13:486480\n at chunks/nitro/nitro.mjs:13:486746\n"
19 replies
NNuxt
Created by pinefin on 3/3/2025 in #❓・help
no .output files
I'm building with these build scripts:
"scripts": {
"build": "nuxi build --preset=cloudflare_pages",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare",
"db:generate": "drizzle-kit generate"
},
"scripts": {
"build": "nuxi build --preset=cloudflare_pages",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare",
"db:generate": "drizzle-kit generate"
},
dist has all the files in the world but .output and .output/public are completely empty. and i dont know what's going on
5 replies
NNuxt
Created by pinefin on 2/17/2025 in #❓・help
Nitro Plugin Question
How do I make a plugin not restart every time i save a different file? id rather it restart (every time i do npm run dev for example) and stay running with the same data
4 replies
NNuxt
Created by pinefin on 2/14/2025 in #❓・help
run serverside code on startup
i want to make code run at runtime, im struggling to find out how, ive tried plugins/hooks, i've tried putting code in the base scope of a utils file, ive tried nitro plugins, not sure what else to do. i want this to start an interval and run in the background of the whole server and not be needed by any of the other scripts (besides the data that it edits offhand)
20 replies