Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
vincerubinetti committed Apr 8, 2024
1 parent 83a2bee commit 318a7c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions frontend/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import App from "./App";

console.debug(import.meta);

(async () => {
/** mock api */
if (new URL(window.location.href).searchParams.get("mock") === "true") {
Expand Down
3 changes: 2 additions & 1 deletion local_runner/Dockerfile.frontend
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ FROM oven/bun:latest
# don't get invalidated by changes to the frontend code
COPY ./frontend/package.json ./
COPY ./frontend/bun.lockb ./

RUN bunx msw init
RUN bun install

Expand All @@ -15,4 +16,4 @@ COPY ./frontend/ ./
# connections from non-local (i.e., outside the container) clients.
# we also run it internally on port 5175 rather than remap 5173 (the default)
# to 5175 on the host via docker, so the frontend URL in the logs is accurate.
CMD ["bun", "run", "dev", "--", "--host", "--port", "5175"]
CMD ["bun", "run", "dev", "--host", "--port", "5175"]

0 comments on commit 318a7c3

Please sign in to comment.