Repository navigation
fix: default cookies to secure: false during development - #16462
elliott-with-the-longest-name-on-github merged 8 commits into
Conversation
|
Install the latest version of pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/494c5cb9d19f909bb4388a836a25285781c54b1eOpen in |
🦋 Changeset detectedLatest commit: 494c5cb The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Co-authored-by: Tee Ming <[email protected]>
commented
Jul 21, 2026
|
/autofix |
| @@ -37,30 +37,38 @@ const cookies_setup = ({ href, headers } = {}) => { | |||
|
|
|||
| describe.skipIf(process.env.NODE_ENV === 'production')('cookies in dev', () => { | |||
| beforeAll(() => { | |||
| // @ts-expect-error | |||
| globalThis.__SVELTEKIT_DEV__ = true; | |||
| vi.stubGlobal('__SVELTEKIT_DEV__', true); | |||
There was a problem hiding this comment.
Hmm this doesn't seem to work as opposed to the previous hack. Not sure why. Do we need to import cookie.js after this?
There was a problem hiding this comment.
Yeah I'm trying to figure that out, it's weird that it's not working... let me try another trick
There was a problem hiding this comment.
What's really weird is that it works on Windows but not Linux or MacOS 😓
Closes #10438