Skip to content

Commit

Permalink
Somehow fixed Docker???
Browse files Browse the repository at this point in the history
  • Loading branch information
jamie6king committed Nov 19, 2024
1 parent fbb3f4e commit a7b282d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion client/Root.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export default function Root() {
setLoading(true)

const url = (process.env.REACT_APP_LOCAL == "yes") ? "http://localhost:3000/locations" : "/locations"
console.debug(url)

if (searchTimeout) clearTimeout(searchTimeout);
searchTimeout = setTimeout(async () => {
Expand Down
4 changes: 4 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import HtmlWebpackPlugin from "html-webpack-plugin";
import webpack from "webpack";
import path from "path";
import { fileURLToPath } from "url";

Expand Down Expand Up @@ -45,6 +46,9 @@ export default [
new HtmlWebpackPlugin({
template: path.resolve(__dirname, 'public/index.html'),
}),
new webpack.DefinePlugin({
"process.env": JSON.stringify(process.env)
})
],
devServer: {
static: {
Expand Down

0 comments on commit a7b282d

Please sign in to comment.