File tree Expand file tree Collapse file tree 2 files changed +21
-5
lines changed
examples/epic-stack/app/routes/_auth+ Expand file tree Collapse file tree 2 files changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,10 @@ export default defineConfig(() => {
41
41
pluginReactRouter ({
42
42
// Optional: Enable custom server mode
43
43
customServer: false ,
44
+ // Optional: Specify server output format
45
+ serverOutput: " commonjs" ,
46
+ // Optional: enable experimental support for module federation
47
+ federation: false
44
48
}),
45
49
pluginReact ()
46
50
],
@@ -60,7 +64,19 @@ pluginReactRouter({
60
64
* Enable this when you want to handle server setup manually.
61
65
* @default false
62
66
*/
63
- customServer?: boolean
67
+ customServer?: boolean ,
68
+
69
+ /**
70
+ * Specify the output format for server-side code.
71
+ * Options: "commonjs" | "module"
72
+ * @default " module"
73
+ */
74
+ serverOutput?: " commonjs" | " module"
75
+ /**
76
+ * Enable experimental support for module federation
77
+ * @default false
78
+ */
79
+ federation ?: boolean
64
80
})
65
81
```
66
82
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ import { type SEOHandle } from '@nasa-gcn/remix-seo'
4
4
import { data , Form , Link , useSearchParams } from 'react-router'
5
5
import { HoneypotInputs } from 'remix-utils/honeypot/react'
6
6
import { z } from 'zod'
7
- import { GeneralErrorBoundary } from 'remote /components/error-boundary'
8
- import { CheckboxField , ErrorList , Field } from 'remote /components/forms'
9
- import { Spacer } from 'remote /components/spacer'
10
- import { StatusButton } from 'remote /components/ui/status-button'
7
+ import { GeneralErrorBoundary } from '#app /components/error-boundary'
8
+ import { CheckboxField , ErrorList , Field } from '#app /components/forms'
9
+ import { Spacer } from '#app /components/spacer'
10
+ import { StatusButton } from '#app /components/ui/status-button'
11
11
import { login , requireAnonymous } from '#app/utils/auth.server.ts'
12
12
import {
13
13
ProviderConnectionForm ,
You can’t perform that action at this time.
0 commit comments