Skye
12/22/2022, 11:13 AMLoaiA
12/22/2022, 11:14 AMLoaiA
12/22/2022, 11:14 AMLoaiA
12/22/2022, 11:15 AMSkye
12/22/2022, 11:15 AMLoaiA
12/22/2022, 11:16 AMLoaiA
12/22/2022, 11:16 AMLoaiA
12/22/2022, 11:17 AMLoaiA
12/22/2022, 11:17 AMSkye
12/22/2022, 11:17 AMzszszsz
12/22/2022, 6:57 PMindex.html
is for SPA routing. Most SPA practices change their path so that users can go directly back to the position where they leave.zszszsz
12/22/2022, 7:00 PMindex.html
or 404.html
first, and let JavaScript to request the actual contentzszszsz
12/22/2022, 7:03 PMzszszsz
12/22/2022, 7:09 PM/ssr/[[path]]
, and have index
and /
redirect to ssr/index
zszszsz
12/22/2022, 7:10 PMzszszsz
12/22/2022, 7:11 PM/static
and exclude them in _routes.json
Cоlе
12/23/2022, 12:38 AMimport.meta.glob
, but it never occurred to me that it wouldn't work when deployedCоlе
12/23/2022, 12:39 AMSkye
12/23/2022, 12:46 AMenv.ASSETS.fetch("/path/to/my/asset")
(returns a response)tzul
12/23/2022, 11:34 AMkian
12/23/2022, 11:40 AMnpm install date-fns
and then just importing it in your Functions codetuf
12/23/2022, 6:16 PM- functions/
- - index.ts
- views
- - index.view
tuf
12/23/2022, 6:16 PMtuf
12/23/2022, 6:16 PMSkye
12/23/2022, 6:26 PMSkye
12/23/2022, 6:26 PMtuf
12/23/2022, 6:26 PMSkye
12/23/2022, 6:26 PMtuf
12/23/2022, 6:27 PMTypeError
Failed to parse URL from /users/hello/
I tried several different paths users/hello, /users/hello, /users/hello.html, /functions/users/hello.html
etc, all had this error