From 10e7bc5770edec43fcf8ab766cca4169781a8223 Mon Sep 17 00:00:00 2001 From: Emilio Alvarez Date: Wed, 22 Mar 2023 12:41:44 -0500 Subject: [PATCH] treat .doenet as an asset --- vite.config.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/vite.config.js b/vite.config.js index d3490110d4..f0b623ed16 100644 --- a/vite.config.js +++ b/vite.config.js @@ -7,6 +7,14 @@ import { defineConfig } from 'vite'; export default defineConfig({ appType: 'mpa', plugins: [react()], + assetsInclude: ['**/*.doenet'], + server: { + proxy: { + '/api': 'http://apache', + '/cyapi': 'http://apache', + '/media': 'http://apache', + }, + }, resolve: { alias: [ { find: 'csv-parse', replacement: 'csv-parse/browser/esm' }, @@ -29,13 +37,6 @@ export default defineConfig({ NodeModulesPolyfillPlugin(), ], }, - server: { - proxy: { - '/api': 'http://apache', - '/cyapi': 'http://apache', - '/media': 'http://apache', - }, - }, build: { outDir: './dist_local', rollupOptions: {