File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 33 "version" : " 0.0.1" ,
44 "type" : " module" ,
55 "scripts" : {
6- "start" : " node ./dist/server.mjs " ,
6+ "start" : " node ./dist/server.cjs " ,
77 "build" : " vite build"
88 },
99 "dependencies" : {
Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ export default defineConfig({
77 target : "ESNext" ,
88 lib : {
99 entry : "src/index.ts" ,
10- formats : [ "es " ]
10+ formats : [ "cjs " ]
1111 } ,
1212 rollupOptions : {
1313 input : "src/index.ts" ,
14- output : { entryFileNames : "server.mjs " }
14+ output : { entryFileNames : "server.cjs " }
1515 }
1616 }
1717} )
Original file line number Diff line number Diff line change 1212 <webSocket enabled =" false" />
1313 <handlers >
1414 <!-- Indicates that the server.js file is a node.js site to be handled by the iisnode module -->
15- <add name =" iisnode" path =" dist/server.mjs " verb =" *" modules =" iisnode" />
15+ <add name =" iisnode" path =" dist/server.cjs " verb =" *" modules =" iisnode" />
1616 </handlers >
1717 <rewrite >
1818 <rules >
1919 <!-- All other URLs are mapped to the node.js site entry point -->
2020 <rule name =" DynamicContent" >
21- <action type =" Rewrite" url =" dist/server.mjs " />
21+ <action type =" Rewrite" url =" dist/server.cjs " />
2222 </rule >
2323 </rules >
2424 </rewrite >
You can’t perform that action at this time.
0 commit comments