Skip to content

Conversation

@ematipico
Copy link
Member

@ematipico ematipico commented Aug 28, 2023

Changes

This PR does some internal refactoring inside our supported adapters to use our new exported internals:

  • AstroError
  • AstroIntegrationLogger and the logger returned by the astro hooks

I added the following APIs:

  • logger to the preview API payload;
  • created a new public function called getAdapterLogger, so the adapter runtime can do the same logging as astro

I removed runtime.ts, which was flagged as deprecated. There's a TODO to remove it for 3.0.

Closes #8255

Testing

Current tests should all pass

Docs

N/A

I will probably follow up with another PR in the docs repo.

@ematipico ematipico requested a review from a team as a code owner August 28, 2023 14:19
@changeset-bot
Copy link

changeset-bot bot commented Aug 28, 2023

⚠️ No Changeset found

Latest commit: 9688fef

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions bot added pkg: integration Related to any renderer integration (scope) pkg: astro Related to the core `astro` package (scope) labels Aug 28, 2023
@ematipico ematipico force-pushed the refactor/use-new-astro-internals branch from 280e7d4 to 1cb9a8a Compare August 28, 2023 15:41
@ematipico ematipico merged commit c7921e9 into main Aug 28, 2023
@ematipico ematipico deleted the refactor/use-new-astro-internals branch August 28, 2023 16:19
ematipico added a commit that referenced this pull request Feb 5, 2025
* refactor: use new Astro internals

* chore: update tests

---------

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
ematipico added a commit that referenced this pull request Feb 5, 2025
* refactor: use new Astro internals

* chore: update tests

---------

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
ematipico added a commit that referenced this pull request Feb 6, 2025
* refactor: use new Astro internals

* chore: update tests

---------

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
ematipico added a commit that referenced this pull request Feb 7, 2025
* refactor: use new Astro internals

* chore: update tests

---------

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
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) pkg: integration Related to any renderer integration (scope)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Standalone Server still shows text "Preview server listening"

3 participants