-
-
Notifications
You must be signed in to change notification settings - Fork 352
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
New setting headersResponse
#1803
Comments
Agreed. Although I'd name it How much of a priority is it? |
headersResponse
(I think) related to this I'd like to be able to set a cookie from a +data.ts file. |
@gnardini Indeed with In the meantime, how about the following? // +data.js
export default (pageContext) => {
pageContext.theCookieIWantToadd = '...'
} Then access it at your |
I use |
@BierDav I agree it'd be nice to make it accessible with |
What is the timeframe until we can get this feature, the workaround is quite tedious for such a simple task. |
Correct me if I'm wrong but I think if you create a component hook then you get a pretty good DX. Pointers to Solid Start's docs welcome and I'll compare the DX with what we plan for Vike. There isn't any ETA, but for sure not before we finish our work on Vike's CLI. (I.e. not before the upcoming |
Description
I'd like the ability to set response headers in a hook/config.
This would be useful for, for example https://github.com/magne4000/vite-plugin-vercel, so it could allow users to set cache-control headers in their +config.js file, to leverage Vercels edge cache.
I think headers could be a vike core config, for example:
The text was updated successfully, but these errors were encountered: