Commit 1c1fdd1
committed
Fix Capacitor build: skip OAuth redirects during static build
The adapter-static fallback generation was failing with status 302
because hooks.server.ts was triggering OAuth redirects during the
build phase. Added a check for the `building` flag to skip these
redirects during static site generation.1 parent aa6e992 commit 1c1fdd1
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
148 | 151 | | |
149 | 152 | | |
150 | 153 | | |
| |||
0 commit comments