Skip to content
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

fix: correct URL for entry points #7490

Merged
merged 2 commits into from
Jun 27, 2023
Merged

fix: correct URL for entry points #7490

merged 2 commits into from
Jun 27, 2023

Conversation

ematipico
Copy link
Member

Changes

There were two issues:

  • the test case was using for..in instead of for..of, because of that, the test was running but the for loop wasn't executed. Fixing that showed the issue and it was failing;
  • fixed the path of entryPoints, which now uses the correct build.server URL
  • we forgot to document the introduction of entryPoints in a changeset; we can't create a new changeset now because the feature is already released. I changed CHANGELOG.md. Once accepted, I will change the text of https://github.com/withastro/astro/releases/tag/astro%402.7.0

Testing

Fixed the current test case

Docs

/cc @withastro/maintainers-docs for feedback!

@ematipico ematipico requested a review from a team as a code owner June 27, 2023 08:59
@changeset-bot
Copy link

changeset-bot bot commented Jun 27, 2023

🦋 Changeset detected

Latest commit: f3d2c10

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

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

@ematipico ematipico requested a review from bluwy June 27, 2023 08:59
@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Jun 27, 2023
@ematipico ematipico force-pushed the fix/ssr-output-directory branch from 9c0a4ee to 74a8808 Compare June 27, 2023 09:00
@ematipico
Copy link
Member Author

cc @alexanderniebuhr

Copy link
Member

@bluwy bluwy left a comment

Choose a reason for hiding this comment

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

One small nit, but otherwise looks great!

NOTE: The changelog edit sounds fine to me. IIRC you can do that with changesets. Editing the release later should also be fine too.

Comment on lines -114 to -128
export interface BuildConfig {
/**
* @deprecated Use config.build.client instead.
*/
client: URL;
/**
* @deprecated Use config.build.server instead.
*/
server: URL;
/**
* @deprecated Use config.build.serverEntry instead.
*/
serverEntry: string;
}

Copy link
Member

Choose a reason for hiding this comment

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

Love this refactor!

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah it was long overdue

packages/astro/CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
@ematipico ematipico merged commit 6014037 into main Jun 27, 2023
@ematipico ematipico deleted the fix/ssr-output-directory branch June 27, 2023 10:58
@astrobot-houston astrobot-houston mentioned this pull request Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants