Skip to content

Commit

Permalink
Merge pull request #33 from sparcs-kaist/feature/allowed-hosts
Browse files Browse the repository at this point in the history
Feature/allowed hosts
  • Loading branch information
pacokwon authored Mar 10, 2021
2 parents e2e2e8e + 3ccbea9 commit ea6ae6c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
8 changes: 2 additions & 6 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# URL of api + socket server
# e.g. http://localhost:3000
SERVER_URL=""

# Public URL to be used in webpack config WITHOUT scheme
# e.g. localhost:8000
PUBLIC_URL=""
# e.g. http://localhost:3000, http://api.server.com:8000
SERVER_URL=
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"babel-plugin-styled-components": "^1.11.1",
"clean-webpack-plugin": "^3.0.0",
"css-loader": "^3.5.2",
"dotenv": "^8.2.0",
"dotenv-webpack": "^4.0.0",
"eslint": "^7.7.0",
"eslint-config-prettier": "^6.11.0",
Expand Down
3 changes: 1 addition & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
const Dotenv = require('dotenv-webpack');
const env = require('dotenv').config();

module.exports = {
entry: './src/index.tsx',
Expand Down Expand Up @@ -53,7 +52,7 @@ module.exports = {
devServer: {
port: 8000,
host: '0.0.0.0',
public: env.parsed.PUBLIC_URL,
historyApiFallback: true,
allowedHosts: ['.sparcs.org', 'localhost'],
},
};

0 comments on commit ea6ae6c

Please sign in to comment.