From 4ed4efbe83db03710b567827eb3088970afcac07 Mon Sep 17 00:00:00 2001 From: Simon Emms Date: Tue, 22 Jul 2025 17:47:07 +0100 Subject: [PATCH] chore: add support for devcontainers (#50) --- .devcontainer/devcontainer.json | 20 ++++++++++++++++++++ frontend/vite.config.js | 1 + 2 files changed, 21 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..ac61b0c --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,20 @@ +{ + "image": "mcr.microsoft.com/devcontainers/base:ubuntu", + "name": "Temporal AI Agentic Demo", + "features": { + "ghcr.io/devcontainers/features/node:1": {}, + "ghcr.io/devcontainers-extra/features/poetry:2": {}, + "ghcr.io/devcontainers/features/python:1": {}, + "ghcr.io/devcontainers-extra/features/temporal-cli:1": {}, + "ghcr.io/mrsimonemms/devcontainers/tcld:1": {} + }, + "forwardPorts": [ + 5173, + 7233, + 8000, + 8233 + ], + "containerEnv": { + "VITE_HOST": "0.0.0.0" + } +} diff --git a/frontend/vite.config.js b/frontend/vite.config.js index 1031728..41104e2 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -5,5 +5,6 @@ export default defineConfig({ plugins: [react()], server: { open: true, + host: process.env.VITE_HOST ?? 'localhost', }, }); \ No newline at end of file