diff --git a/templates/vue-template/e2b.Dockerfile b/templates/vue-template/e2b.Dockerfile index 0e7f331..7585380 100644 --- a/templates/vue-template/e2b.Dockerfile +++ b/templates/vue-template/e2b.Dockerfile @@ -6,9 +6,10 @@ WORKDIR /home/user/app # Pre-install common dependencies to speed up runtime RUN npm init -y -RUN npm install --legacy-peer-deps vue@3 -RUN npm install --legacy-peer-deps --save-dev tailwindcss@3 autoprefixer@10 postcss@8 @vue/compiler-sfc@3 vite @vitejs/plugin-vue +RUN npm install -g typescript vue@3 +RUN npm install --legacy-peer-deps --save-dev tailwindcss@3 autoprefixer@10 postcss@8 @vue/compiler-sfc@3 vite @vitejs/plugin-vue @vitejs/plugin-react-swc # Set up basic Vite configuration for Vue RUN npx tailwindcss init -COPY nuxt.config.ts /home/user/app/ \ No newline at end of file +COPY nuxt.config.ts /home/user/app/ +COPY vite.config.ts /home/user/app/ \ No newline at end of file diff --git a/templates/vue-template/vite.config.ts b/templates/vue-template/vite.config.ts new file mode 100644 index 0000000..117e541 --- /dev/null +++ b/templates/vue-template/vite.config.ts @@ -0,0 +1,11 @@ +import { defineConfig } from 'vite' +import react from '@vitejs/plugin-react-swc' + +// https://vite.dev/config/ +export default defineConfig({ + plugins: [react()], + server: { + host: true, + allowedHosts: true + } +});