Yes it’s fine. Anything you add in your wrangler.toml can be public
Yes it’s fine. Anything you add in your wrangler.toml can be public
wrangler .... or npm exec wrangler ... it throws the error abovewas compiled against a different Node.js version using NODE_MODULE_VERSION 111

app.onError(async (err, ctx) => {
if (err instanceof HTTPException) {
const msg = await err.res.text();
return ctx.json({ message: msg }, err.status);
} else {
if (ctx.env.ENVIRONMENT != 'development') {
const { url, method } = ctx.req.raw;
let jsonBody = '';
if (method == 'POST' || method == 'PUT') {
jsonBody = await ctx.req.json();
}
await postToDiscord(
err.message,
JSON.stringify(
{
url: url,
method: method,
data: jsonBody,
},
null,
2
)
);
}
return ctx.json({ message: 'Server error' }, 500);
}
});testing-next-d1 on git main [!?] via nodejs v16.13.0
> wrangler d1 execute --file ./init.sql pollo-4 --local
▲ [WARNING] Processing wrangler.toml configuration:
- D1 Bindings are currently in alpha to allow the API to evolve before general availability.
Please report any issues to https://github.com/cloudflare/workers-sdk/issues/new/choose
Note: Run this command with the environment variable NO_D1_WARNING=true to hide this message
For example: `export NO_D1_WARNING=true && wrangler <YOUR COMMAND HERE>`
--------------------
🚧 D1 is currently in open alpha and is not recommended for production data and traffic
🚧 Please report any bugs to https://github.com/cloudflare/workers-sdk/issues/new/choose
🚧 To request features, visit https://community.cloudflare.com/c/developers/d1
🚧 To give feedback, visit https://discord.gg/cloudflaredev
--------------------
🌀 Mapping SQL input into an array of statements
✘ [ERROR] The module '\\?\C:\Users\REDACTED\AppData\Roaming\npm\node_modules\wrangler\node_modules\better-sqlite3\build\Release\better_sqlite3.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 111. This version of Node.js requires
NODE_MODULE_VERSION 93. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
If you think this is a bug then please create an issue at https://github.com/cloudflare/workers-sdk/issues/new/choose
testing-next-d1 on git main [!?] via nodejs v16.13.0
x