-
Notifications
You must be signed in to change notification settings - Fork 4
Update SolidStart and Nitro Dependencies #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,7 +15,7 @@ | |
| // along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
|
|
||
| import { solidStart } from "@solidjs/start/config"; | ||
| import { nitroV2Plugin as nitro } from "@solidjs/vite-plugin-nitro-2"; | ||
| import { nitro } from "nitro/vite"; | ||
| import { defineConfig } from "vite"; | ||
| import { cjsInterop } from "vite-plugin-cjs-interop"; | ||
| import relay from "vite-plugin-relay-lite"; | ||
|
|
@@ -25,6 +25,9 @@ export default defineConfig(({ command }) => ({ | |
| solidStart(), | ||
| nitro(), | ||
| relay({ codegen: command !== "build" }), | ||
| cjsInterop({ dependencies: ["relay-runtime"] }), | ||
| { | ||
| ...cjsInterop({ dependencies: ["relay-runtime"] }), | ||
| applyToEnvironment: (environment) => environment.name === "ssr", | ||
| }, | ||
|
Comment on lines
+28
to
+31
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How about use
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think there are not many states between current setting, so I think using enviroment callback simply enough.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. However, I change detect method more accurately, 15e3339
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 15e3339 causes error with nitro/vite, so I rested it. |
||
| ], | ||
| })); | ||
Uh oh!
There was an error while loading. Please reload this page.