Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Conversation

eduardoboucas
Copy link
Contributor

Changes

Updates the Netlify adapter to use the upcoming Frameworks API.

Testing

Tests updated.

Docs

Internal change, no user-facing changes are expected.

Copy link

changeset-bot bot commented Jul 1, 2024

🦋 Changeset detected

Latest commit: ff9febc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@astrojs/netlify Minor
@test/netlify-hosted-astro-project Patch

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

notFoundContent,
})});
export const config = { name: "Astro SSR", generator: "@astrojs/netlify@${packageVersion}", path: "/*", preferStatic: true };
export const config = ${inspect(config)};
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've used inspect and not JSON.stringify because we had an issue with accept string literals as keys. This was fixed in netlify/build#5745, but it's not something we can back-port to older versions of the Netlify CLI.

Copy link
Contributor

@ascorbic ascorbic Jul 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only the version is dynamic, so would it be cleaner to inline the whole thing like before instead of this rather painful workaround?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in b8186e7.

},
TRACE_CACHE
);
const config = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it doesn't look like this is ever used

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's used on line 262

@eduardoboucas eduardoboucas marked this pull request as ready for review July 5, 2024 10:04
@eduardoboucas eduardoboucas requested a review from ascorbic July 5, 2024 11:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants