|
| 1 | +// For more details, see https://aka.ms/devcontainer.json. |
| 2 | +{ |
| 3 | + "name": "PayPal Advanced Integration (v1)", |
| 4 | + "image": "mcr.microsoft.com/devcontainers/javascript-node:20", |
| 5 | + "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}/advanced-integration/v1", |
| 6 | + // Use 'onCreateCommand' to run commands when creating the container. |
| 7 | + "onCreateCommand": "bash ../../.devcontainer/advanced-integration-v1/welcome-message.sh", |
| 8 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 9 | + "postCreateCommand": "npm install", |
| 10 | + // Use 'postAttachCommand' to run commands when attaching to the container. |
| 11 | + "postAttachCommand": { |
| 12 | + "Start server": "npm start" |
| 13 | + }, |
| 14 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 15 | + "forwardPorts": [8888], |
| 16 | + "portsAttributes": { |
| 17 | + "8888": { |
| 18 | + "label": "Preview of Advanced Checkout Flow", |
| 19 | + "onAutoForward": "openBrowserOnce" |
| 20 | + } |
| 21 | + }, |
| 22 | + "secrets": { |
| 23 | + "PAYPAL_CLIENT_ID": { |
| 24 | + "description": "Sandbox client ID of the application.", |
| 25 | + "documentationUrl": "https://developer.paypal.com/dashboard/applications/sandbox" |
| 26 | + }, |
| 27 | + "PAYPAL_CLIENT_SECRET": { |
| 28 | + "description": "Sandbox secret of the application.", |
| 29 | + "documentationUrl": "https://developer.paypal.com/dashboard/applications/sandbox" |
| 30 | + } |
| 31 | + }, |
| 32 | + "customizations": { |
| 33 | + "vscode": { |
| 34 | + "extensions": ["vsls-contrib.codetour"], |
| 35 | + "settings": { |
| 36 | + "git.openRepositoryInParentFolders": "always" |
| 37 | + } |
| 38 | + } |
| 39 | + } |
| 40 | +} |
0 commit comments