config for oauth

This commit is contained in:
h z
2024-12-04 14:06:30 +00:00
parent 321dea202d
commit 55ddd17bf0
10 changed files with 76 additions and 24 deletions

View File

@@ -1,6 +1,7 @@
//webpack.config.js
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const webpack = require('webpack')
module.exports = {
entry: './src/index.js',
@@ -27,7 +28,11 @@ module.exports = {
plugins: [
new HtmlWebpackPlugin({
template: "./public/index.html",
})
}),
new webpack.DefinePlugin({
FRONT_END_CLIENT_ID: process.env.FRONT_END_CLIENT_ID,
SERVER_HOST: process.env.SERVER_HOST,
}),
],
devServer: {
static: path.join(__dirname, 'public'),