tlebeitsuk / nuxt-cloudflare-lucia Goto Github PK
View Code? Open in Web Editor NEWA demo using Nuxt, Cloudflare Pages + D1 database and Lucia auth
A demo using Nuxt, Cloudflare Pages + D1 database and Lucia auth
Hey,
tried to deploy to Cloudflare Pages, but get a failing build because of the argon2 dependency. Any idea how to solve this?
used Node 20.11.0
00:37:08.701 | [error] [nitro] Error: Cannot resolve "./argon2.win32-arm64-msvc.node" from "/opt/buildhome/repo/node_modules/.pnpm/@[email protected]/node_modules/@node-rs/argon2/index.js" and externals are not allowed!
-- | --
00:37:08.702 |
00:37:08.702 |
00:37:08.703 | undefined
00:37:08.703 | [error] Cannot resolve "./argon2.win32-arm64-msvc.node" from "/opt/buildhome/repo/node_modules/.pnpm/@[email protected]/node_modules/@node-rs/argon2/index.js" and externals are not allowed!
00:37:08.703 | at Object.resolveId (node_modules/.pnpm/[email protected]/node_modules/nitropack/dist/shared/nitro.4ea992bc.mjs:1973:17)
00:37:08.704 | at async PluginDriver.hookFirstAndGetPlugin (node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:18631:28)
00:37:08.704 | at async resolveId (node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:17298:26)
00:37:08.704 | at async ModuleLoader.resolveId (node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:17712:15)
00:37:08.704 | at async node_modules/.pnpm/@[email protected][email protected]/node_modules/@rollup/plugin-commonjs/dist/es/index.js:785:16
00:37:08.704 | at async Promise.all (index 11)
00:37:08.704 | at async node_modules/.pnpm/@[email protected][email protected]/node_modules/@rollup/plugin-commonjs/dist/es/index.js:777:32
00:37:08.705 | at async rewriteRequireExpressionsAndGetImportBlock (node_modules/.pnpm/@[email protected][email protected]/node_modules/@rollup/plugin-commonjs/dist/es/index.js:1354:28)
00:37:08.705 | at async transformCommonjs (node_modules/.pnpm/@[email protected][email protected]/node_modules/@rollup/plugin-commonjs/dist/es/index.js:1928:23)
00:37:08.705 | at async transform (node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:17630:16)
00:37:08.705 |
00:37:08.705 | [error] Cannot resolve "./argon2.win32-arm64-msvc.node" from "/opt/buildhome/repo/node_modules/.pnpm/@[email protected]/node_modules/@node-rs/argon2/index.js" and externals are not allowed!
Hi! I'm learning almost the same stack you used in this project.
I'm also completely fresh with CF D1...
Can I ask you how exactly you use a local (sqlite) database during the local development (yarn dev)?
Do you use a sqlite in local dev and D1 in production or is there a better way with D1 and wrangler?
I went trough D1 docs:
https://developers.cloudflare.com/d1/learning/local-development/
Local development sessions create a standalone, local-only environment that mirrors the production environment D1 runs in so that you can test your Worker and D1 before you deploy to production.
Is this meant for testing build before deploying or is there a "smoother" way to use D1 / wrangler during local development?
Cheers! :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.