Matthew Phillips
c2f889bec6
Use status 308 for non-GET redirects ( #7186 )
2023-05-24 08:39:23 -04:00
Matthew Phillips
2904ceddf6
Merge branch 'main' into redirects-ssg
2023-05-23 15:47:04 -04:00
Matthew Phillips
f55e42222c
Add support for the object notation in redirects
2023-05-23 15:45:29 -04:00
Matthew Phillips
ffc771e746
Implement support for redirects config in the Vercel adapter ( #7182 )
...
* Implement support for redirects config in the Vercel adapter
* Remove unused condition
* Move to a internal helper package
2023-05-23 15:43:24 -04:00
matthewp
bf2320edb6
[ci] format
2023-05-23 19:43:05 +00:00
wulinsheng123
904131aec3
fix a bug when Fragment is as a slot ( #6832 )
...
* fix a bug when Fragment is as a slot
* update yaml
* fix ts errpr
* fix astro name of md
---------
Co-authored-by: wuls <linsheng.wu@beantechs.com>
2023-05-23 15:40:21 -04:00
Ben Holmes
57e65d247f
revert: markdoc asset bleed ( #7178 )
...
* revert: markdoc asset bleed
* chore: changeset
2023-05-23 12:16:50 -04:00
Houston (Bot)
cbdb0fdbd6
[ci] release ( #7169 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-23 11:06:53 -04:00
Bjorn Lu
79ba74832f
Prevent Vite watching on Astro config load ( #7171 )
2023-05-23 22:40:40 +08:00
Emanuele Stoppa
92d1f017e5
chore(middleware): lift restriction around serializable data ( #7174 )
2023-05-23 15:10:30 +01:00
ematipico
d73c908396
[ci] format
2023-05-23 13:58:58 +00:00
Emanuele Stoppa
626dd41d0a
refactor: move renderers to their own plugin ( #7166 )
2023-05-23 14:55:34 +01:00
Bjorn Lu
4ce8bf7c62
Make vite-plugin-content-virtual-mod run getEntrySlug
10 at a time ( #7125 )
2023-05-23 21:54:59 +08:00
Matthew Phillips
11a517b1f1
Merge branch 'main' into redirects-ssg
2023-05-23 09:34:22 -04:00
Matthew Phillips
25d7d208ba
Implement support for dynamic routes in redirects ( #7173 )
...
* Implement support for dynamic routes in redirects
* Remove the .only
* No need to special-case redirects in static build
2023-05-23 09:01:46 -04:00
Matthew Phillips
4857c7d317
Support redirects in Netlify SSR configuration ( #7167 )
2023-05-23 08:14:18 -04:00
Erika
2ca94269ed
Add types for import.meta.env.ASSETS_PREFIX
and import.meta.env.SITE
( #7172 )
2023-05-23 14:13:10 +02:00
Alex Vukadinov
5b6a0312a8
fix: value of var could be undefined when using define:vars
( #7134 )
2023-05-23 12:28:44 +08:00
Houston (Bot)
64d2aba583
[ci] release ( #7163 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-22 15:16:13 -04:00
matthewp
6533cbea87
[ci] format
2023-05-22 17:52:03 +00:00
Ben Holmes
f558a9e205
[Markdoc] Fix global asset bleed ( #6758 )
...
* wip: propagatedAssets flag per-component
* Propagate in TreeNode
* fix: remove unused inject comment
* feat: make asset propagation an integration opt-in
* fix: remove crawlGraph stopper
* wip: logs to understand what's happening
* SSR mdoc files in dev
* feat: add astroPropagatedAssets flag with vite
* chore: remove console logs
* chore: cleanup hasContentFlag
* fix: set handlePropagation default for legacy integrations
* chore: changeset
* temp: silence acorn type error
* chore: revert pnpm-lock changes
* fix: check correct flag
* We need to handle propagation on markdown because of layouts
* Remove use of renderStyleElement
* Fix heading tests
* Fix merge conflict
* typeof function
* Switch the check
* Add comment on injection detection regexp
---------
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-05-22 13:50:01 -04:00
Johannes Spohr
b41963b775
Render 404 page content when a Response
with status 404 is returned from a page ( #7143 )
2023-05-22 12:06:06 -04:00
Matthew Phillips
e9e4d72598
Merge branch 'main' into redirects-ssg
2023-05-22 11:43:26 -04:00
Houston (Bot)
d880293f79
[ci] release ( #7161 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-22 09:48:21 -04:00
Akash Rajpurohit
e17ed0727e
feat: 🎨 export rss feeditem type ( #7153 )
2023-05-22 21:20:10 +08:00
matthewp
f962348f76
[ci] format
2023-05-22 13:18:18 +00:00
Arsh
ba06362409
fix(hoisted scripts): consider script's dependents ( #7144 )
2023-05-22 09:15:21 -04:00
MoustaphaDev
49bfeacdec
[ci] format
2023-05-22 13:00:23 +00:00
Happydev
8f418d13c5
fix(hybrid-output): no matched route when using getStaticPaths
( #7150 )
...
* `isPrenderDefault` ---> `isPrerenderDefault`
* test: add test fixture
* test: add hybrid getStaticPaths tests
* try fix in ci
* bring back edit lost on merge conflict fix
* back static paths guard
* move function to new file to avoid bundling issues
* remove unsued import
* debugging cleanup
* chore: update fixture's package.json
* cleanup test
* small test refactoring
* `status.ts` --> `metadata.ts`
* smol refactor
* chore: changeset
* just return the prerender metadata
* refactor tests
* chore: update lock file
2023-05-22 12:58:03 +00:00
Houston (Bot)
0616ef2551
[ci] release ( #7130 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-21 00:00:31 +08:00
Matthew Phillips
83ed3669be
Late test should only run in SSR
2023-05-19 15:42:18 -04:00
Matthew Phillips
ab0539b951
Fix location ref
2023-05-19 15:18:44 -04:00
Matthew Phillips
1749ce5d08
Refactor to be more modular
2023-05-19 15:07:14 -04:00
Matthew Phillips
eed6a72a2a
Fix build problem
2023-05-19 14:48:21 -04:00
Matthew Phillips
475294a60e
Merge branch 'main' into redirects-ssg
2023-05-19 14:34:44 -04:00
bholmesdev
358d1dc92f
[ci] format
2023-05-19 18:14:41 +00:00
Ben Holmes
a9e1cd7e58
Fix: Heading ID CI flakiness ( #7141 )
...
* feat: use `ctx` object instead of leaky global
* test: heading IDs stale caches
* chore: changeset
2023-05-19 14:12:45 -04:00
Connor Bär
147373722b
fix(prefetch): Fix the inclusion of @types/network-information
( #7123 )
2023-05-19 23:34:34 +08:00
matthewp
cf066944b5
[ci] format
2023-05-19 14:54:42 +00:00
Johannes Spohr
72f686a689
Fix injectRoute for SSR ( #7128 )
...
* Use manifest routes for SSR app manifest instead of page components to enable injected routes with SSR
* Small refactoring
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
---------
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-05-19 10:52:46 -04:00
Bjorn Lu
ed4aff0cb9
Fix e2e flaky tests again ( #7129 )
2023-05-19 22:46:31 +08:00
ematipico
7341d9a288
[ci] format
2023-05-19 14:31:59 +00:00
Emanuele Stoppa
852d59a8d6
refactor(astro): emit entry.mjs
to import pages via dynamic import ( #7036 )
2023-05-19 15:30:03 +01:00
ematipico
96947fce96
[ci] format
2023-05-19 12:53:45 +00:00
Emanuele Stoppa
319a0a7a0a
refactor: create virtual module for middleware ( #7132 )
2023-05-19 13:51:47 +01:00
Erika
3257dd2890
Improve content collection error message for empty folders ( #7118 )
2023-05-19 13:53:46 +02:00
Bjorn Lu
2b9a25beaf
Fix smoke test markdoc CI ( #7131 )
2023-05-19 19:19:34 +08:00
Bjorn Lu
530fb9ebee
Add route information for getStaticPaths warning ( #7126 )
2023-05-19 18:13:46 +08:00
Houston (Bot)
31cbf4357e
[ci] release ( #7090 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-18 12:31:59 -04:00
Bjorn Lu
dad105a91e
Document inlineStylesheets available astro version ( #7117 )
2023-05-18 12:14:17 -04:00