Matthew Phillips
d3895a2d71
Redirects: Allow preventing the output of the static HTML file ( #7245 )
2023-05-30 18:18:40 -04:00
Matthew Phillips
a39eb51d4c
Fix ordering again
2023-05-30 18:04:21 -04:00
Matthew Phillips
fd52bd6bb1
Merge branch 'main' into redirects-ssg
2023-05-30 17:52:21 -04:00
Matthew Phillips
d7d0b22e96
Fix netlify test ordering
2023-05-30 17:49:22 -04:00
Matthew Phillips
eb7617d719
Refactor
2023-05-30 17:41:24 -04:00
Matthew Phillips
02a8506e22
Merge branch 'main' into redirects-ssg
2023-05-30 17:23:32 -04:00
Houston (Bot)
ba865f5d64
[ci] release ( #7190 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-30 16:53:55 -04:00
Ben Holmes
f5063d0a01
Content collections - fix .json
collection errors ( #7246 )
...
* fix: avoid error on collectionType === 'unknown'
* fix: ignore underscores in file globs
* chore: clarify [!_]
* fix: mismatch error not throwing
* fix: bad collectionType var
* test: no error for empty collection
* chore: changeset
2023-05-30 16:27:47 -04:00
bholmesdev
8da07ab754
[ci] format
2023-05-30 20:21:13 +00:00
Ben Holmes
bef3a75dbc
Markdoc - remove $entry
variable ( #7244 )
...
* refactor: remove entry prop from `getRenderModule()`
* refactor: remove `$entry` from markdoc
* test: update entry-prop -> variables test
* refactor: unify `getEntryConfigByExt`
* chore: clean up shared content / data get logic
* docs: update `$entry` recommendation
* chore: rename entry-prop -> variables
* chore: changeset
* chore: missed a spot
2023-05-30 16:18:20 -04:00
Ben Holmes
c7897f20a9
Markdoc: new README for Markdoc nodes ( #7225 )
...
* docs: all-new nodes documentation
* edit: `.astro` ONLY
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* edit: `.` outside links, line break
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* edit: such as, not like
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* edit: more Astro less probs
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* edit: reviewers React to
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* edit: tagz
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* chore: add `default: 'article'` for document
* edit: reword client-side instructions
* edit: prism stylesheet got lost
* fix: heading -> blockquote
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-05-30 14:51:38 -04:00
MoustaphaDev
4851782197
[ci] format
2023-05-30 14:14:52 +00:00
Happydev
ee2aca80a7
fix: prioritize dynamic prerendered routes over dynamic server routes ( #7235 )
...
* test: add unit tests
* fix: prioritize prerendered routes
* chore: fix test
* add comment
* test: try avoiding race condition
* chore: changeset
* try avoiding race conditions attempt #2
* try avoiding race conditions (attempt 3)
* final fix hopefuly
* tet: add more tests
* sort conflicting dynamic routes aplhabetically
* test: fix test
2023-05-30 14:12:16 +00:00
Matthew Phillips
fa03a41a7a
Implement priority ( #7210 )
2023-05-30 08:31:00 -04:00
matthewp
e20a3b20b7
[ci] format
2023-05-30 12:08:08 +00:00
wulinsheng123
cf621340b0
Bug 6672 ( #7062 )
...
* fix miss a head when the templaterender has a promise
* fix
* add some test
* test files move to md directory
* fix add
* delect file
---------
Co-authored-by: wuls <linsheng.wu@beantechs.com>
2023-05-30 08:05:48 -04:00
Bjorn Lu
29da199e9a
Document MDX optimize static logic ( #7221 )
...
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-05-30 15:46:33 +08:00
Bjorn Lu
af3c5a2e25
Use AstroError for Astro.glob errors ( #7219 )
...
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: sarah11918 <sarah11918@users.noreply.github.com>
2023-05-29 20:42:31 +08:00
Bjorn Lu
df1e6f78df
Fix markdoc image tests ( #7231 )
2023-05-29 16:37:40 +08:00
Erika
f2f18b4405
feat: support images outside the project ( #7139 )
2023-05-26 22:03:06 +02:00
Bjorn Lu
1c77779dd6
Fix astro-static-slot
hydration mismatch error ( #7196 )
2023-05-26 22:37:33 +08:00
Bjorn Lu
6c7df28ab3
Fix CSS deduping and missing chunks ( #7218 )
2023-05-26 21:30:42 +08:00
Princesseuh
6b12f93b57
[ci] format
2023-05-26 13:04:57 +00:00
André Alves
bf63f615fc
Add global crypto to @astrojs/webapi ( #6981 )
...
* add crypto to be polyfilled
* chore: changeset
* chore: update deps for node types
---------
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: Princesseuh <princssdev@gmail.com>
2023-05-26 15:02:35 +02:00
Matthew Phillips
ef9a456f25
Test that redirects can come from middleware ( #7213 )
...
* Test that redirects can come from middleware
* Allow non-promise returns for middleware
2023-05-26 06:49:10 -04:00
Bjorn Lu
52af9ad188
Add error message if Astro.glob
is called outside ( #7204 )
2023-05-26 16:59:51 +08:00
Ben Holmes
184870e2e2
deps: bump @babel/core and @babel/types ( #7214 )
2023-05-25 13:30:03 -04:00
bholmesdev
594a3aaf51
[ci] format
2023-05-25 15:37:55 +00:00
Ben Holmes
16b8364119
Markdoc - improve syntax highlighting support ( #7209 )
...
* feat: prism and shiki support, with better exports!
* chore: update tests
* chore: fix lock
* chore: add prism test
* chore: remove `async` from prism
* docs: update syntax highlight readme
* chore: changeset
* edit: remove `await` from prism docs
* chore: update old changest with new shiki instructions
* fix: add trailing newline on ts-expect-error
* refactor: resolve promises internally
* docs: remove `await` from shiki examples
2023-05-25 11:35:07 -04:00
Matthew Phillips
8b4d248a36
Implement redirects in Cloudflare ( #7198 )
...
* Implement redirects in Cloudflare
* Fix build
* Update tests b/c of new ordering
* Debug issue
* Use posix.join
* Update packages/underscore-redirects/package.json
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
* Update based on review comments
* Update broken test
---------
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-05-25 10:53:58 -04:00
ematipico
223e0131fc
[ci] format
2023-05-25 13:30:42 +00:00
Emanuele Stoppa
8b041bf57c
refactor: emit pages as physical entry points ( #7193 )
2023-05-25 14:28:40 +01:00
Erika
f5a8cffac2
fix(vercel): Fix typo in README 🤦♀️ ( #7208 )
2023-05-25 14:59:25 +02:00
Bjorn Lu
ea16570b1e
Add MDX optimize option ( #7151 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-05-25 19:43:29 +08:00
Bjorn Lu
20a97922aa
Document partytown script block by extensions ( #7205 )
2023-05-25 19:42:57 +08:00
Emanuele Stoppa
8727b5bd85
fix: formatting comment ( #7206 )
2023-05-25 10:29:11 +01:00
Alexander Niebuhr
6ca3b5a9e8
Export ChangeFreqEnum type for sitemap integration ( #7028 )
2023-05-25 17:15:26 +08:00
Akash Rajpurohit
59d8c50b84
fix: 🩹 update partytown options ts type ( #7175 )
2023-05-25 16:24:59 +08:00
bholmesdev
dc31b8a722
[ci] format
2023-05-24 20:54:43 +00:00
Ben Holmes
1efaef6be0
Markdoc - Shiki ( #7187 )
...
* chore: remove unused util
* chore: changeset
* deps: shiki
* wip: first stab at shiki markdoc config
* feat: get shiki working!
* refactor: return HTML string directly from transform
* chore: move shiki to markdoc dev dep
* refactor: use async cache with clear docs on why
* test: transform units with Shiki config options
* refactor: switch to `extends` model
* refactor: nodes/ -> extensions/
* feat: raise friendly error for Promise extensions
* docs: README
* chore: lint
* chore: dead file
* chore: lowercase for fuzzy find please
* fix: bad ctx spread
* chore: clean up cache, add shiki imp error
* chore: add shiki to optional peer deps
* chore: hoist those consts
* docs: more explicit "install shiki now please"
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* oops bad find and replace
* chore: update changeset
* nit: period haunts me
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-05-24 16:52:22 -04:00
Matthew Phillips
af2ceea276
Merge branch 'main' into redirects-ssg
2023-05-24 11:07:40 -04:00
Matthew Phillips
c2f889bec6
Use status 308 for non-GET redirects ( #7186 )
2023-05-24 08:39:23 -04:00
Emanuele Stoppa
7851f9258f
fix: detect mdx
files using full extension ( #7192 )
2023-05-24 10:20:06 +01:00
Bjorn Lu
27c6e01826
Remove @mdx-js/rollup
dependency ( #7191 )
2023-05-24 17:02:04 +08:00
Barthélémy Ledoux
2bda7fb0bc
fix: add astro-static-slot to the list of inert tags in astro css ( #7189 )
2023-05-24 15:10:10 +08:00
Houston (Bot)
55a0439e00
[ci] release ( #7181 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-23 16:24:16 -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