Skip to content

Commit

Permalink
treat .doenet as an asset
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyanthropos committed Mar 22, 2023
1 parent 79bb0b7 commit 10e7bc5
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
Expand All @@ -29,13 +37,6 @@ export default defineConfig({
NodeModulesPolyfillPlugin(),
],
},
server: {
proxy: {
'/api': 'http://apache',
'/cyapi': 'http://apache',
'/media': 'http://apache',
},
},
build: {
outDir: './dist_local',
rollupOptions: {
Expand Down

0 comments on commit 10e7bc5

Please sign in to comment.