Repository navigation
Conversation
The site is one static page, so Next was only used as a static generator. Astro renders the same page with React hydrating only Try and Generate. - index.astro and Layout.astro replace index, _app and _document - Tailwind through @tailwindcss/vite, font through fontsource - Fail the build when no .meta.yaml files could be fetched - Deploy dist instead of out, cache npm through setup-node - Lint with astro check, format .astro files with prettier-plugin-astro
Pull requests to main build without uploading or deploying. The scheduled run now publishes too, so the implementation list refreshes. The build falls back to github.token when PUSH_TOKEN is unavailable, as on fork pull requests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The site is one static page and Next was only used to render it once (
output: 'export'). Astro renders the same page, and React hydrates onlyTryandGenerate.What changed
index.astroandLayout.astroreplaceindex.tsx,_app.tsxand_document.tsx. The GitHub fetch that wasgetStaticPropsis now code at the top ofindex.astro.Block,Implementations,TryandGenerateare the same React components.BlockandImplementationsrender to HTML without JS.@tailwindcss/vite, the font comes from@fontsource-variable/source-sans-3..meta.yamlfiles could be fetched, instead of publishing an empty list.deploy.ymluploadsdistinstead ofoutand caches npm throughsetup-node.deploy.ymltriggers: pull requests tomainbuild without publishing. Pushes tomain, manual runs and the schedule build and publish. The schedule runs every third hour around the clock (0 */3 * * *, UTC). The build falls back togithub.tokenwhenPUSH_TOKENis unavailable, as on fork pull requests.npm run lintrunsastro check. ESLint is removed together witheslint-config-next.npm run formatalso covers.astrothroughprettier-plugin-astro.Comparison against main
Both versions were built from the same GitHub data.
node_modulesRendered text, links (142), images (69) and head tags are the same. All 30 measured elements (headings, tables, inputs) have the same position and size at 1024 px, and the page height is 2892 px in both.
One difference: Next adds 55
<link rel="preload">tags for the badge and logo images. Astro does not, so they load as plain<img>. I have not measured which is faster.