From 4e88ffd813a3a9fa37b2ddd1a2eff181d4a99c0f Mon Sep 17 00:00:00 2001 From: Erika <3019731+Princesseuh@users.noreply.github.com> Date: Wed, 30 Aug 2023 18:52:21 +0200 Subject: [PATCH] Update CodeSandbox config for Node 18 and new editor (#8292) * config: update config for codesandbox * feat: update create-astro to remove .codesandbox folder * chore: changeset * fix: use node18 --- .changeset/soft-penguins-tease.md | 5 +++++ examples/basics/.codesandbox/Dockerfile | 1 + examples/basics/sandbox.config.json | 11 ----------- examples/blog/.codesandbox/Dockerfile | 1 + examples/blog/sandbox.config.json | 11 ----------- examples/deno/.codesandbox/Dockerfile | 1 + examples/deno/sandbox.config.json | 11 ----------- examples/framework-alpine/.codesandbox/Dockerfile | 1 + examples/framework-alpine/sandbox.config.json | 11 ----------- examples/framework-lit/.codesandbox/Dockerfile | 1 + examples/framework-lit/sandbox.config.json | 11 ----------- examples/framework-multiple/.codesandbox/Dockerfile | 1 + examples/framework-multiple/sandbox.config.json | 11 ----------- examples/framework-preact/.codesandbox/Dockerfile | 1 + examples/framework-preact/sandbox.config.json | 11 ----------- examples/framework-react/.codesandbox/Dockerfile | 1 + examples/framework-react/sandbox.config.json | 11 ----------- examples/framework-solid/.codesandbox/Dockerfile | 1 + examples/framework-solid/sandbox.config.json | 11 ----------- examples/framework-svelte/.codesandbox/Dockerfile | 1 + examples/framework-svelte/sandbox.config.json | 11 ----------- examples/framework-vue/.codesandbox/Dockerfile | 1 + examples/framework-vue/sandbox.config.json | 11 ----------- examples/hackernews/.codesandbox/Dockerfile | 1 + examples/hackernews/sandbox.config.json | 11 ----------- examples/minimal/.codesandbox/Dockerfile | 1 + examples/minimal/sandbox.config.json | 11 ----------- examples/non-html-pages/.codesandbox/Dockerfile | 1 + examples/non-html-pages/sandbox.config.json | 11 ----------- examples/portfolio/.codesandbox/Dockerfile | 1 + examples/portfolio/sandbox.config.json | 11 ----------- examples/ssr/.codesandbox/Dockerfile | 1 + examples/with-markdoc/.codesandbox/Dockerfile | 1 + examples/with-markdoc/sandbox.config.json | 11 ----------- .../with-markdown-plugins/.codesandbox/Dockerfile | 1 + examples/with-markdown-plugins/sandbox.config.json | 11 ----------- examples/with-markdown-shiki/.codesandbox/Dockerfile | 1 + examples/with-markdown-shiki/sandbox.config.json | 11 ----------- examples/with-mdx/.codesandbox/Dockerfile | 1 + examples/with-mdx/sandbox.config.json | 11 ----------- examples/with-nanostores/.codesandbox/Dockerfile | 1 + examples/with-nanostores/sandbox.config.json | 11 ----------- examples/with-tailwindcss/.codesandbox/Dockerfile | 1 + examples/with-tailwindcss/sandbox.config.json | 11 ----------- examples/with-vite-plugin-pwa/.codesandbox/Dockerfile | 1 + examples/with-vite-plugin-pwa/sandbox.config.json | 11 ----------- examples/with-vitest/.codesandbox/Dockerfile | 1 + examples/with-vitest/sandbox.config.json | 11 ----------- packages/create-astro/src/actions/template.ts | 2 +- 49 files changed, 30 insertions(+), 254 deletions(-) create mode 100644 .changeset/soft-penguins-tease.md create mode 100644 examples/basics/.codesandbox/Dockerfile delete mode 100644 examples/basics/sandbox.config.json create mode 100644 examples/blog/.codesandbox/Dockerfile delete mode 100644 examples/blog/sandbox.config.json create mode 100644 examples/deno/.codesandbox/Dockerfile delete mode 100644 examples/deno/sandbox.config.json create mode 100644 examples/framework-alpine/.codesandbox/Dockerfile delete mode 100644 examples/framework-alpine/sandbox.config.json create mode 100644 examples/framework-lit/.codesandbox/Dockerfile delete mode 100644 examples/framework-lit/sandbox.config.json create mode 100644 examples/framework-multiple/.codesandbox/Dockerfile delete mode 100644 examples/framework-multiple/sandbox.config.json create mode 100644 examples/framework-preact/.codesandbox/Dockerfile delete mode 100644 examples/framework-preact/sandbox.config.json create mode 100644 examples/framework-react/.codesandbox/Dockerfile delete mode 100644 examples/framework-react/sandbox.config.json create mode 100644 examples/framework-solid/.codesandbox/Dockerfile delete mode 100644 examples/framework-solid/sandbox.config.json create mode 100644 examples/framework-svelte/.codesandbox/Dockerfile delete mode 100644 examples/framework-svelte/sandbox.config.json create mode 100644 examples/framework-vue/.codesandbox/Dockerfile delete mode 100644 examples/framework-vue/sandbox.config.json create mode 100644 examples/hackernews/.codesandbox/Dockerfile delete mode 100644 examples/hackernews/sandbox.config.json create mode 100644 examples/minimal/.codesandbox/Dockerfile delete mode 100644 examples/minimal/sandbox.config.json create mode 100644 examples/non-html-pages/.codesandbox/Dockerfile delete mode 100644 examples/non-html-pages/sandbox.config.json create mode 100644 examples/portfolio/.codesandbox/Dockerfile delete mode 100644 examples/portfolio/sandbox.config.json create mode 100644 examples/ssr/.codesandbox/Dockerfile create mode 100644 examples/with-markdoc/.codesandbox/Dockerfile delete mode 100644 examples/with-markdoc/sandbox.config.json create mode 100644 examples/with-markdown-plugins/.codesandbox/Dockerfile delete mode 100644 examples/with-markdown-plugins/sandbox.config.json create mode 100644 examples/with-markdown-shiki/.codesandbox/Dockerfile delete mode 100644 examples/with-markdown-shiki/sandbox.config.json create mode 100644 examples/with-mdx/.codesandbox/Dockerfile delete mode 100644 examples/with-mdx/sandbox.config.json create mode 100644 examples/with-nanostores/.codesandbox/Dockerfile delete mode 100644 examples/with-nanostores/sandbox.config.json create mode 100644 examples/with-tailwindcss/.codesandbox/Dockerfile delete mode 100644 examples/with-tailwindcss/sandbox.config.json create mode 100644 examples/with-vite-plugin-pwa/.codesandbox/Dockerfile delete mode 100644 examples/with-vite-plugin-pwa/sandbox.config.json create mode 100644 examples/with-vitest/.codesandbox/Dockerfile delete mode 100644 examples/with-vitest/sandbox.config.json diff --git a/.changeset/soft-penguins-tease.md b/.changeset/soft-penguins-tease.md new file mode 100644 index 000000000..3ddc98a26 --- /dev/null +++ b/.changeset/soft-penguins-tease.md @@ -0,0 +1,5 @@ +--- +'create-astro': patch +--- + +Correctly remove new `.codesandbox` folder when copying template diff --git a/examples/basics/.codesandbox/Dockerfile b/examples/basics/.codesandbox/Dockerfile new file mode 100644 index 000000000..c3b5c81a1 --- /dev/null +++ b/examples/basics/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18-bullseye diff --git a/examples/basics/sandbox.config.json b/examples/basics/sandbox.config.json deleted file mode 100644 index 8e476b8cc..000000000 --- a/examples/basics/sandbox.config.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "infiniteLoopProtection": true, - "hardReloadOnChange": false, - "view": "browser", - "template": "node", - "container": { - "port": 4321, - "startScript": "start", - "node": "14" - } -} diff --git a/examples/blog/.codesandbox/Dockerfile b/examples/blog/.codesandbox/Dockerfile new file mode 100644 index 000000000..c3b5c81a1 --- /dev/null +++ b/examples/blog/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18-bullseye diff --git a/examples/blog/sandbox.config.json b/examples/blog/sandbox.config.json deleted file mode 100644 index 8e476b8cc..000000000 --- a/examples/blog/sandbox.config.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "infiniteLoopProtection": true, - "hardReloadOnChange": false, - "view": "browser", - "template": "node", - "container": { - "port": 4321, - "startScript": "start", - "node": "14" - } -} diff --git a/examples/deno/.codesandbox/Dockerfile b/examples/deno/.codesandbox/Dockerfile new file mode 100644 index 000000000..c3b5c81a1 --- /dev/null +++ b/examples/deno/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18-bullseye diff --git a/examples/deno/sandbox.config.json b/examples/deno/sandbox.config.json deleted file mode 100644 index 8e476b8cc..000000000 --- a/examples/deno/sandbox.config.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "infiniteLoopProtection": true, - "hardReloadOnChange": false, - "view": "browser", - "template": "node", - "container": { - "port": 4321, - "startScript": "start", - "node": "14" - } -} diff --git a/examples/framework-alpine/.codesandbox/Dockerfile b/examples/framework-alpine/.codesandbox/Dockerfile new file mode 100644 index 000000000..c3b5c81a1 --- /dev/null +++ b/examples/framework-alpine/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18-bullseye diff --git a/examples/framework-alpine/sandbox.config.json b/examples/framework-alpine/sandbox.config.json deleted file mode 100644 index 8e476b8cc..000000000 --- a/examples/framework-alpine/sandbox.config.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "infiniteLoopProtection": true, - "hardReloadOnChange": false, - "view": "browser", - "template": "node", - "container": { - "port": 4321, - "startScript": "start", - "node": "14" - } -} diff --git a/examples/framework-lit/.codesandbox/Dockerfile b/examples/framework-lit/.codesandbox/Dockerfile new file mode 100644 index 000000000..c3b5c81a1 --- /dev/null +++ b/examples/framework-lit/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18-bullseye diff --git a/examples/framework-lit/sandbox.config.json b/examples/framework-lit/sandbox.config.json deleted file mode 100644 index 8e476b8cc..000000000 --- a/examples/framework-lit/sandbox.config.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "infiniteLoopProtection": true, - "hardReloadOnChange": false, - "view": "browser", - "template": "node", - "container": { - "port": 4321, - "startScript": "start", - "node": "14" - } -} diff --git a/examples/framework-multiple/.codesandbox/Dockerfile b/examples/framework-multiple/.codesandbox/Dockerfile new file mode 100644 index 000000000..c3b5c81a1 --- /dev/null +++ b/examples/framework-multiple/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18-bullseye diff --git a/examples/framework-multiple/sandbox.config.json b/examples/framework-multiple/sandbox.config.json deleted file mode 100644 index 8e476b8cc..000000000 --- a/examples/framework-multiple/sandbox.config.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "infiniteLoopProtection": true, - "hardReloadOnChange": false, - "view": "browser", - "template": "node", - "container": { - "port": 4321, - "startScript": "start", - "node": "14" - } -} diff --git a/examples/framework-preact/.codesandbox/Dockerfile b/examples/framework-preact/.codesandbox/Dockerfile new file mode 100644 index 000000000..c3b5c81a1 --- /dev/null +++ b/examples/framework-preact/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18-bullseye diff --git a/examples/framework-preact/sandbox.config.json b/examples/framework-preact/sandbox.config.json deleted file mode 100644 index 8e476b8cc..000000000 --- a/examples/framework-preact/sandbox.config.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "infiniteLoopProtection": true, - "hardReloadOnChange": false, - "view": "browser", - "template": "node", - "container": { - "port": 4321, - "startScript": "start", - "node": "14" - } -} diff --git a/examples/framework-react/.codesandbox/Dockerfile b/examples/framework-react/.codesandbox/Dockerfile new file mode 100644 index 000000000..c3b5c81a1 --- /dev/null +++ b/examples/framework-react/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18-bullseye diff --git a/examples/framework-react/sandbox.config.json b/examples/framework-react/sandbox.config.json deleted file mode 100644 index 8e476b8cc..000000000 --- a/examples/framework-react/sandbox.config.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "infiniteLoopProtection": true, - "hardReloadOnChange": false, - "view": "browser", - "template": "node", - "container": { - "port": 4321, - "startScript": "start", - "node": "14" - } -} diff --git a/examples/framework-solid/.codesandbox/Dockerfile b/examples/framework-solid/.codesandbox/Dockerfile new file mode 100644 index 000000000..c3b5c81a1 --- /dev/null +++ b/examples/framework-solid/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18-bullseye diff --git a/examples/framework-solid/sandbox.config.json b/examples/framework-solid/sandbox.config.json deleted file mode 100644 index 8e476b8cc..000000000 --- a/examples/framework-solid/sandbox.config.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "infiniteLoopProtection": true, - "hardReloadOnChange": false, - "view": "browser", - "template": "node", - "container": { - "port": 4321, - "startScript": "start", - "node": "14" - } -} diff --git a/examples/framework-svelte/.codesandbox/Dockerfile b/examples/framework-svelte/.codesandbox/Dockerfile new file mode 100644 index 000000000..c3b5c81a1 --- /dev/null +++ b/examples/framework-svelte/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18-bullseye diff --git a/examples/framework-svelte/sandbox.config.json b/examples/framework-svelte/sandbox.config.json deleted file mode 100644 index 8e476b8cc..000000000 --- a/examples/framework-svelte/sandbox.config.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "infiniteLoopProtection": true, - "hardReloadOnChange": false, - "view": "browser", - "template": "node", - "container": { - "port": 4321, - "startScript": "start", - "node": "14" - } -} diff --git a/examples/framework-vue/.codesandbox/Dockerfile b/examples/framework-vue/.codesandbox/Dockerfile new file mode 100644 index 000000000..c3b5c81a1 --- /dev/null +++ b/examples/framework-vue/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18-bullseye diff --git a/examples/framework-vue/sandbox.config.json b/examples/framework-vue/sandbox.config.json deleted file mode 100644 index 8e476b8cc..000000000 --- a/examples/framework-vue/sandbox.config.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "infiniteLoopProtection": true, - "hardReloadOnChange": false, - "view": "browser", - "template": "node", - "container": { - "port": 4321, - "startScript": "start", - "node": "14" - } -} diff --git a/examples/hackernews/.codesandbox/Dockerfile b/examples/hackernews/.codesandbox/Dockerfile new file mode 100644 index 000000000..c3b5c81a1 --- /dev/null +++ b/examples/hackernews/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18-bullseye diff --git a/examples/hackernews/sandbox.config.json b/examples/hackernews/sandbox.config.json deleted file mode 100644 index 8e476b8cc..000000000 --- a/examples/hackernews/sandbox.config.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "infiniteLoopProtection": true, - "hardReloadOnChange": false, - "view": "browser", - "template": "node", - "container": { - "port": 4321, - "startScript": "start", - "node": "14" - } -} diff --git a/examples/minimal/.codesandbox/Dockerfile b/examples/minimal/.codesandbox/Dockerfile new file mode 100644 index 000000000..c3b5c81a1 --- /dev/null +++ b/examples/minimal/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18-bullseye diff --git a/examples/minimal/sandbox.config.json b/examples/minimal/sandbox.config.json deleted file mode 100644 index 8e476b8cc..000000000 --- a/examples/minimal/sandbox.config.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "infiniteLoopProtection": true, - "hardReloadOnChange": false, - "view": "browser", - "template": "node", - "container": { - "port": 4321, - "startScript": "start", - "node": "14" - } -} diff --git a/examples/non-html-pages/.codesandbox/Dockerfile b/examples/non-html-pages/.codesandbox/Dockerfile new file mode 100644 index 000000000..c3b5c81a1 --- /dev/null +++ b/examples/non-html-pages/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18-bullseye diff --git a/examples/non-html-pages/sandbox.config.json b/examples/non-html-pages/sandbox.config.json deleted file mode 100644 index 8e476b8cc..000000000 --- a/examples/non-html-pages/sandbox.config.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "infiniteLoopProtection": true, - "hardReloadOnChange": false, - "view": "browser", - "template": "node", - "container": { - "port": 4321, - "startScript": "start", - "node": "14" - } -} diff --git a/examples/portfolio/.codesandbox/Dockerfile b/examples/portfolio/.codesandbox/Dockerfile new file mode 100644 index 000000000..c3b5c81a1 --- /dev/null +++ b/examples/portfolio/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18-bullseye diff --git a/examples/portfolio/sandbox.config.json b/examples/portfolio/sandbox.config.json deleted file mode 100644 index 8e476b8cc..000000000 --- a/examples/portfolio/sandbox.config.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "infiniteLoopProtection": true, - "hardReloadOnChange": false, - "view": "browser", - "template": "node", - "container": { - "port": 4321, - "startScript": "start", - "node": "14" - } -} diff --git a/examples/ssr/.codesandbox/Dockerfile b/examples/ssr/.codesandbox/Dockerfile new file mode 100644 index 000000000..c3b5c81a1 --- /dev/null +++ b/examples/ssr/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18-bullseye diff --git a/examples/with-markdoc/.codesandbox/Dockerfile b/examples/with-markdoc/.codesandbox/Dockerfile new file mode 100644 index 000000000..c3b5c81a1 --- /dev/null +++ b/examples/with-markdoc/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18-bullseye diff --git a/examples/with-markdoc/sandbox.config.json b/examples/with-markdoc/sandbox.config.json deleted file mode 100644 index 8e476b8cc..000000000 --- a/examples/with-markdoc/sandbox.config.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "infiniteLoopProtection": true, - "hardReloadOnChange": false, - "view": "browser", - "template": "node", - "container": { - "port": 4321, - "startScript": "start", - "node": "14" - } -} diff --git a/examples/with-markdown-plugins/.codesandbox/Dockerfile b/examples/with-markdown-plugins/.codesandbox/Dockerfile new file mode 100644 index 000000000..c3b5c81a1 --- /dev/null +++ b/examples/with-markdown-plugins/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18-bullseye diff --git a/examples/with-markdown-plugins/sandbox.config.json b/examples/with-markdown-plugins/sandbox.config.json deleted file mode 100644 index 8e476b8cc..000000000 --- a/examples/with-markdown-plugins/sandbox.config.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "infiniteLoopProtection": true, - "hardReloadOnChange": false, - "view": "browser", - "template": "node", - "container": { - "port": 4321, - "startScript": "start", - "node": "14" - } -} diff --git a/examples/with-markdown-shiki/.codesandbox/Dockerfile b/examples/with-markdown-shiki/.codesandbox/Dockerfile new file mode 100644 index 000000000..c3b5c81a1 --- /dev/null +++ b/examples/with-markdown-shiki/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18-bullseye diff --git a/examples/with-markdown-shiki/sandbox.config.json b/examples/with-markdown-shiki/sandbox.config.json deleted file mode 100644 index 8e476b8cc..000000000 --- a/examples/with-markdown-shiki/sandbox.config.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "infiniteLoopProtection": true, - "hardReloadOnChange": false, - "view": "browser", - "template": "node", - "container": { - "port": 4321, - "startScript": "start", - "node": "14" - } -} diff --git a/examples/with-mdx/.codesandbox/Dockerfile b/examples/with-mdx/.codesandbox/Dockerfile new file mode 100644 index 000000000..c3b5c81a1 --- /dev/null +++ b/examples/with-mdx/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18-bullseye diff --git a/examples/with-mdx/sandbox.config.json b/examples/with-mdx/sandbox.config.json deleted file mode 100644 index 8e476b8cc..000000000 --- a/examples/with-mdx/sandbox.config.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "infiniteLoopProtection": true, - "hardReloadOnChange": false, - "view": "browser", - "template": "node", - "container": { - "port": 4321, - "startScript": "start", - "node": "14" - } -} diff --git a/examples/with-nanostores/.codesandbox/Dockerfile b/examples/with-nanostores/.codesandbox/Dockerfile new file mode 100644 index 000000000..c3b5c81a1 --- /dev/null +++ b/examples/with-nanostores/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18-bullseye diff --git a/examples/with-nanostores/sandbox.config.json b/examples/with-nanostores/sandbox.config.json deleted file mode 100644 index 8e476b8cc..000000000 --- a/examples/with-nanostores/sandbox.config.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "infiniteLoopProtection": true, - "hardReloadOnChange": false, - "view": "browser", - "template": "node", - "container": { - "port": 4321, - "startScript": "start", - "node": "14" - } -} diff --git a/examples/with-tailwindcss/.codesandbox/Dockerfile b/examples/with-tailwindcss/.codesandbox/Dockerfile new file mode 100644 index 000000000..c3b5c81a1 --- /dev/null +++ b/examples/with-tailwindcss/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18-bullseye diff --git a/examples/with-tailwindcss/sandbox.config.json b/examples/with-tailwindcss/sandbox.config.json deleted file mode 100644 index 8e476b8cc..000000000 --- a/examples/with-tailwindcss/sandbox.config.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "infiniteLoopProtection": true, - "hardReloadOnChange": false, - "view": "browser", - "template": "node", - "container": { - "port": 4321, - "startScript": "start", - "node": "14" - } -} diff --git a/examples/with-vite-plugin-pwa/.codesandbox/Dockerfile b/examples/with-vite-plugin-pwa/.codesandbox/Dockerfile new file mode 100644 index 000000000..c3b5c81a1 --- /dev/null +++ b/examples/with-vite-plugin-pwa/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18-bullseye diff --git a/examples/with-vite-plugin-pwa/sandbox.config.json b/examples/with-vite-plugin-pwa/sandbox.config.json deleted file mode 100644 index 8e476b8cc..000000000 --- a/examples/with-vite-plugin-pwa/sandbox.config.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "infiniteLoopProtection": true, - "hardReloadOnChange": false, - "view": "browser", - "template": "node", - "container": { - "port": 4321, - "startScript": "start", - "node": "14" - } -} diff --git a/examples/with-vitest/.codesandbox/Dockerfile b/examples/with-vitest/.codesandbox/Dockerfile new file mode 100644 index 000000000..c3b5c81a1 --- /dev/null +++ b/examples/with-vitest/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18-bullseye diff --git a/examples/with-vitest/sandbox.config.json b/examples/with-vitest/sandbox.config.json deleted file mode 100644 index 8e476b8cc..000000000 --- a/examples/with-vitest/sandbox.config.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "infiniteLoopProtection": true, - "hardReloadOnChange": false, - "view": "browser", - "template": "node", - "container": { - "port": 4321, - "startScript": "start", - "node": "14" - } -} diff --git a/packages/create-astro/src/actions/template.ts b/packages/create-astro/src/actions/template.ts index 887ba69f5..3d3d1075d 100644 --- a/packages/create-astro/src/actions/template.ts +++ b/packages/create-astro/src/actions/template.ts @@ -48,7 +48,7 @@ export async function template(ctx: Pick fs.promises.readFile(file, 'utf-8').then((value) => {