diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..ee45b8e4 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,22 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node +{ + "name": "Node.js & TypeScript", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm" + + // Features to add to the dev container. More info: https://containers.dev/features. + // "features": {}, + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Use 'postCreateCommand' to run commands after the container is created. + // "postCreateCommand": "yarn install", + + // Configure tool-specific properties. + // "customizations": {}, + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" +} diff --git a/frontend/angular.json b/frontend/angular.json index 433a32a6..740de4c9 100644 --- a/frontend/angular.json +++ b/frontend/angular.json @@ -136,7 +136,9 @@ "serve": { "builder": "@angular-devkit/build-angular:dev-server", "options": { - "buildTarget": "dissendium-v0:build" + "buildTarget": "dissendium-v0:build", + "host": "127.0.0.1", + "proxyConfig": "src/proxy.conf.json" }, "configurations": { "production": { diff --git a/frontend/src/proxy.conf.json b/frontend/src/proxy.conf.json new file mode 100644 index 00000000..1252f847 --- /dev/null +++ b/frontend/src/proxy.conf.json @@ -0,0 +1,6 @@ +{ + "/api/**": { + "target": "https://app.rocketadmin.com/api/", + "secure": false + } +} \ No newline at end of file