summaryrefslogtreecommitdiff
path: root/examples/ssr/server/server.mjs (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-10-12Node.js standalone mode + support for astro preview (#5056)Gravatar Matthew Phillips 1-44/+0
* wip * Deprecate buildConfig and move to config.build * Implement the standalone server * Stay backwards compat * Add changesets * correctly merge URLs * Get config earlier * update node tests * Return the preview server * update remaining tests * swap usage and config ordering * Update packages/astro/src/@types/astro.ts Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update .changeset/metal-pumas-walk.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update .changeset/metal-pumas-walk.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update .changeset/stupid-points-refuse.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update .changeset/stupid-points-refuse.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Link to build.server config Co-authored-by: Fred K. Schott <fkschott@gmail.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-03-29[ci] formatGravatar matthewp 1-2/+2
2022-03-29Make it deployable to Netlify (#2931)Gravatar Matthew Phillips 1-17/+16
2022-03-24Adapters v0 (#2855)Gravatar Matthew Phillips 1-30/+18
* Adapter v0 * Finalizing adapters * Update the lockfile * Add the default adapter after config setup is called * Create the default adapter in config:done * Fix lint error * Remove unused callConfigSetup * remove unused export * Use a test adapter to test SSR * Adds a changeset * Updated based on feedback * Updated the lockfile * Only throw if set to a different adapter * Clean up outdated comments * Move the adapter to an config option * Make adapter optional * Update the docs/changeset to reflect config API change * Clarify regular Node usage
2022-03-16Implements redirects, headers for SSR (#2798)Gravatar Matthew Phillips 1-3/+4
* Implements redirects, headers for SSR * Move away from an explicit Request * Properly handle endpoint routes in the build * chore(lint): ESLint fix * Update based on review comments Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-07Add `@astrojs/webapi` package (#2729)@astrojs/webapi@0.11.0Gravatar Nate Moore 1-1/+1
* chore: add @astrojs/webapi * chore: update package.json * fix: update file case * fix: remove lowercase file * chore: update tests to use mocha * chore: update LICENSE
2022-02-24ensure utf8 encoding when serving html (#2654)Gravatar Fred K. Schott 1-1/+2
* ensure utf8 encoding on servers * Create spicy-tomatoes-act.md * Update spicy-tomatoes-act.md Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-02-14[ci] yarn formatGravatar matthewp 1-9/+9
2022-02-14Flagged SSR support (#2548)Gravatar Matthew Phillips 1-0/+55
* Checkpoint, basics are working * Add the `--experimental-ssr` flag * Adds the changeset * Fixes population of getStaticPaths results * Pass through the imported module * Route manifest test * Fix remaining tests * Fix remaining tests * Copy server assets over * Fix types * Allowing passing in the request to the Node version of App * Improve the example app * Gets CI to pass