devcontainer.json 673 B

12345678910111213141516171819202122232425262728293031323334
  1. {
  2. "name": "React",
  3. "build": {
  4. "dockerfile": "../examples.Dockerfile"
  5. },
  6. "workspaceFolder": "/workspaces/astro/examples/framework-react",
  7. "portsAttributes": {
  8. "4321": {
  9. "label": "Application",
  10. "onAutoForward": "openPreview"
  11. }
  12. },
  13. "forwardPorts": [4321],
  14. "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
  15. "waitFor": "postCreateCommand",
  16. "postAttachCommand": {
  17. "Server": "pnpm start --host"
  18. },
  19. "customizations": {
  20. "codespaces": {
  21. "openFiles": ["src/pages/index.astro"]
  22. },
  23. "vscode": {
  24. "extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
  25. }
  26. }
  27. }