Skip to content

Commit

Permalink
Fix to run in SSR mode
Browse files Browse the repository at this point in the history
  • Loading branch information
riywo committed Dec 21, 2022
1 parent 9ea129a commit 1d56947
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 62 deletions.
23 changes: 20 additions & 3 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@
import { defineConfig } from 'astro/config';
import { defineConfig } from "astro/config";

// https://astro.build/config
import react from "@astrojs/react";

// https://astro.build/config
import node from "@astrojs/node";

// https://astro.build/config
export default defineConfig({
integrations: [react()]
});
integrations: [react()],
vite: {
ssr: {
noExternal: ["@aws-amplify/*", "@radix-ui/*"],
},
resolve: {
alias: {
"./runtimeConfig": "./runtimeConfig.browser",
},
},
},
output: "server",
adapter: node({
mode: "standalone",
}),
});
Loading

0 comments on commit 1d56947

Please sign in to comment.