Commit graph

23 commits

Author SHA1 Message Date
Princesseuh
dcdeca56ac [ci] format 2022-11-08 18:39:22 +00:00
matthewp
1f57c0ca64 [ci] format 2022-10-18 13:54:56 +00:00
Daniel
5923dd77c1
adding cookies to api route response [simple result] (#5060)
* adding cookies to the an api route response, also when returning a simple result

* in dev server, convert a simple endpoint result into a response object

Co-authored-by: AirBorne04 <unknown>
Co-authored-by: AirBorne04 <>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-10-18 09:52:49 -04:00
Erika
f604ef6c69
Run astro check on all examples in CI (#5022)
* Run astro check on all examples in CI

* Output stderr

* Build Astro before running checks

* Making things faster + colors

* Fix errors inside examples

* Add congrats message

* Revert unentional change to tsconfigs

* Remove more unneeded changes
2022-10-12 09:48:29 -03:00
Matthew Phillips
671fca7dac
Remove early return from SSR example (#4993) 2022-10-05 16:37:54 -04:00
Steven Yung
6fd00c4941
add double check on astro file return type to display more human readable error (#4857) 2022-09-26 14:13:25 -04:00
Steven Yung
f4edba80f9
update SSR example to match recent change on Astro API Context (#4854) 2022-09-23 12:57:05 -04:00
Daren Chandisingh
1bee84920a
examples: Blog template changes (#4577)
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-09-03 16:58:00 +02:00
FredKSchott
4de35f3b70 [ci] format 2022-08-06 04:39:26 +00:00
Erika
c9b679e56e
Move types to a .d.ts file inside examples projects (#4171)
* Move types to a .d.ts file to avoid making types explicit

* Rename to proper types

* Move to proper place

* Add noEmit to tsconfig.json

* Add back removed code by accident
2022-08-05 17:46:52 -04:00
Marcus Otterström
59e8c71786
Format astro files in examples (#3862) 2022-07-08 22:08:32 +02:00
Fred K. Schott
1335797903
update prettier width (#2968) 2022-04-02 14:15:41 -06:00
matthewp
3575a10634 [ci] format 2022-03-29 13:18:35 +00:00
Matthew Phillips
7fd49f1887
Make the SSR example infer the origin (#2932) 2022-03-29 09:17:49 -04:00
matthewp
9fa013b4fa [ci] format 2022-03-29 12:19:10 +00:00
Matthew Phillips
ecbcc8c42c
Make it deployable to Netlify (#2931) 2022-03-29 08:18:11 -04:00
Matthew Phillips
ecc6a4833f
Implement the Astro.request RFC (#2913)
* Implement the Astro.request RFC

* Disable console warnings eslint

* Use our logger

* Adds a changeset

* Fix tests that depend on params, canonicalURL, URL

Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-03-29 07:35:03 -04:00
Matthew Phillips
7b9d042dde
Allow SSR dynamic routes to not implement getStaticPaths (#2815)
* Allow SSR dynamic routes to not implement getStaticPaths

* Adds a changeset

* Update based on code-review comments
2022-03-17 08:31:01 -04:00
matthewp
279774c48e [ci] format 2022-03-16 16:17:34 +00:00
Matthew Phillips
4c25a1c2ea
Implements redirects, headers for SSR (#2798)
* 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-16 12:16:21 -04:00
Robin Millette
329146f3c1
Fix typo (#2674) 2022-02-28 16:04:03 -06:00
matthewp
f84848226d [ci] yarn format 2022-02-14 17:50:16 +00:00
Matthew Phillips
ba5e2b5e6c
Flagged SSR support (#2548)
* 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
2022-02-14 12:48:52 -05:00