Skip to content

Commit

Permalink
fix(netlify): tests (#96)
Browse files Browse the repository at this point in the history
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
  • Loading branch information
alexanderniebuhr and lilnasy authored Dec 6, 2023
1 parent 446be86 commit f1df277
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/stale-boats-joke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/netlify': minor
---

Fixes an issue where this package could not be installed alongside Astro 4.0.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

export function get() {
export function GET() {
const buffer = Buffer.from('base64 test font', 'utf-8')

return new Response(buffer, {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

export function get() {
export function GET() {
const buffer = Buffer.from('base64 test string', 'utf-8')

return new Response(buffer, {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

export function post() {
export function POST() {
const headers = new Headers();
headers.append('Set-Cookie', `foo=foo; HttpOnly`);
headers.append('Set-Cookie', `bar=bar; HttpOnly`);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="astro/client" />

0 comments on commit f1df277

Please sign in to comment.