-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: custom 404 response via headers #35
Conversation
a0f5db2
to
47c1c00
Compare
47c1c00
to
c3153e1
Compare
c4f98ac
to
f618320
Compare
src/app/index.ts
Outdated
|
||
if (isCustomPage) { | ||
status.headers = { | ||
['X-ILC-Override']: 'error-page-content', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would expect to see this code with HTTP header in SSR code, rather then in AppSdk
Because before AppSdk knew nothing about server communication protocol
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would say it's better to work this out through adapters that AppSdk receives at CSR & SSR respectively
fc92894
to
503ada9
Compare
503ada9
to
edefaba
Compare
9a9a076
to
ee2d4be
Compare
…equest function, and AppSdk is predefined in processRequest too
49c1781
to
fedbe93
Compare
fedbe93
to
5234643
Compare
8319638
to
588c5c4
Compare
@@ -0,0 +1,4 @@ | |||
export type TmpResponseData = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export type TmpResponseData = { | |
export type SsrContext = { |
No description provided.