From c6bf4b1bfebfee518fa038941fce45fc3e4b279f Mon Sep 17 00:00:00 2001 From: ks129 <45097959+ks129@users.noreply.github.com> Date: Sat, 20 Feb 2021 10:39:45 +0200 Subject: Add hCaptcha sitekey and allowed hosts to webpack config --- webpack.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 35c90a7..54b4030 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -70,6 +70,7 @@ module.exports = { }] }, devServer: { + allowedHosts: ["pythondiscord.local"], // hCaptcha don't support localhost (pythondiscord.local:3000) contentBase: path.join(__dirname, 'public'), compress: true, port: 3000, @@ -93,7 +94,8 @@ module.exports = { REACT_APP_SENTRY_DSN: "https://false@notreal.ingest.sentry.io/1234", REACT_APP_OAUTH2_CLIENT_ID: "0", BACKEND_URL: "https://forms-api.pythondiscord.com/", - CONTEXT: "development" + CONTEXT: "development", + HCAPTCHA_SITEKEY: "10000000-ffff-ffff-ffff-000000000001" // This is development key what don't add any protection }), new HtmlWebpackPlugin({ inject: true, template: 'public/index.html' -- cgit v1.2.3