Viacheslav
CDCloudflare Developers
•Created by Viacheslav on 11/12/2024 in #general-help
Redirect domain to worker is not working
thanks, @fry69 , Its working !
4 replies
CDCloudflare Developers
•Created by Viacheslav on 7/16/2024 in #workers-help
What simplest way to pass reference to supabase into Worker script
this message appears before "Module source URI is not allowed in this document: “jsr:@supabase/supabase-js@2”.
9 replies
CDCloudflare Developers
•Created by Viacheslav on 7/16/2024 in #workers-help
What simplest way to pass reference to supabase into Worker script
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at jsr:@supabase/supabase-js@2. (Reason: CORS request not http).
9 replies
CDCloudflare Developers
•Created by Viacheslav on 7/16/2024 in #workers-help
What simplest way to pass reference to supabase into Worker script
I receive error: Module source URI is not allowed in this document: “jsr:@supabase/supabase-js@2”.
9 replies
CDCloudflare Developers
•Created by Viacheslav on 7/16/2024 in #workers-help
What simplest way to pass reference to supabase into Worker script
ad than inside worker script write: import { createClient } from 'jsr:@supabase/supabase-js@2'
9 replies
CDCloudflare Developers
•Created by Viacheslav on 7/16/2024 in #workers-help
What simplest way to pass reference to supabase into Worker script
9 replies
CDCloudflare Developers
•Created by Viacheslav on 7/16/2024 in #workers-help
What simplest way to pass reference to supabase into Worker script
@rcoopr thanks, but I don't understand in that way how to add supabase to my worker script
9 replies
CDCloudflare Developers
•Created by Viacheslav on 7/16/2024 in #workers-help
Can I add script Verify Human to Cloudflare worker page (without custom domain)?
interesting, thanks
3 replies
CDCloudflare Developers
•Created by Viacheslav on 3/22/2024 in #workers-help
Webpack. No event handlers were registered. This script does nothing.
require("dotenv").config();
const path = require("path");
const { DefinePlugin } = require("webpack");
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin");
module.exports = {
infrastructureLogging: {
level: "verbose",
},
entry: path.resolve(dirname, "worker.js"),
target: "webworker",
output: {
filename: "worker.js",
path: path.resolve(dirname, "dist"),
library: 'webpack-test',
libraryTarget: 'commonjs2'
},
mode: "production",
resolve: {
fallback: {
fs: false,
},
},
plugins: [
new NodePolyfillPlugin(),
new DefinePlugin({
BOT_TOKEN: JSON.stringify(process.env.BOT_TOKEN ""),
SECRET_PATH: JSON.stringify(process.env.SECRET_PATH ""),
}),
],
performance: {
hints: false,
},
};
6 replies
CDCloudflare Developers
•Created by Viacheslav on 3/22/2024 in #workers-help
Webpack. No event handlers were registered. This script does nothing.
I do something wrong in my Webpack config?
6 replies
CDCloudflare Developers
•Created by Viacheslav on 3/22/2024 in #workers-help
Webpack. No event handlers were registered. This script does nothing.
@Hello, I’m Alastair! ./dist/worker.js looks fine: "(()=>{"use strict";var e={d:(t,o)=>{...}})}};module.exports["webpack-test"]=t})();" and without Webpack (directly from src directory) all working fine.
6 replies