diff options
| author | 2021-02-20 10:39:45 +0200 | |
|---|---|---|
| committer | 2021-02-20 10:39:45 +0200 | |
| commit | c6bf4b1bfebfee518fa038941fce45fc3e4b279f (patch) | |
| tree | 22e2d92bea91c72013fe64aa25cee4ca310eed91 /webpack.config.js | |
| parent | Add Redux and React Redux dependencies (diff) | |
Add hCaptcha sitekey and allowed hosts to webpack config
Diffstat (limited to 'webpack.config.js')
| -rw-r--r-- | webpack.config.js | 4 |
1 files changed, 3 insertions, 1 deletions
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://[email protected]/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' |