Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from withastro:main #133

Open
wants to merge 6,236 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
6236 commits
Select commit Hold shift + click to select a range
63b4ab9
Merge branch 'main' into next
bluwy Oct 31, 2024
81b0bf5
Add changeset for vue to include changes from 4.5.2
bluwy Oct 31, 2024
d879c02
Fix merge error
bluwy Oct 31, 2024
731b697
[ci] release (beta) (#12250)
astrobot-houston Oct 31, 2024
836cd91
fix: Destroy the node http server response stream if there was a caug…
imattacus Oct 31, 2024
20e5a84
Fix prefetch sourcemap generation (#12346)
bluwy Nov 1, 2024
1fc83d3
fix(assets): fix `getImage` options type (#12349)
norskeld Nov 1, 2024
c480b8f
[ci] format
Princesseuh Nov 1, 2024
5751488
fix: revert #12227 (#12351)
florian-lefebvre Nov 1, 2024
35795a1
Fix watchfile multiple dev server restart (#12353)
hippotastic Nov 4, 2024
7680349
fix: honor getViteConfig inlineAstroConfig.logLevel setting (#12358)
spacedawwwg Nov 4, 2024
ec3113d
[ci] release (#12345)
astrobot-houston Nov 4, 2024
493fe43
Improve tinyexec errors (#12368)
bluwy Nov 4, 2024
9263e96
create-astro updates (#12083)
Princesseuh Nov 4, 2024
222f718
Fix `astro add` generated import identifier (#12363)
Fryuni Nov 6, 2024
ed5a9f1
chore: codspeed benchmark (#12347)
ematipico Nov 6, 2024
4c9a42c
[ci] format
ematipico Nov 6, 2024
c4726d7
fix: show file name with invalid frontmatter errors for MDX (#12355)
apatel369 Nov 6, 2024
bf2723e
add `checked` to htmlBooleanAttributes (#12311)
dinesh-58 Nov 6, 2024
94f4fe8
Adds missing changeset for new basics template (#12379)
Princesseuh Nov 6, 2024
b7e4691
fix(deps): update all non-major dependencies (#12366)
renovate[bot] Nov 6, 2024
6fd3d59
Add support for Svelte 5 @render syntax (#12390)
bluwy Nov 6, 2024
4a35c50
[ci] format
bluwy Nov 6, 2024
c280655
Update to Vite 6.0.0-beta.6 (#12323)
bluwy Nov 6, 2024
e10b03e
[ci] release (#12369)
astrobot-houston Nov 6, 2024
7db86cf
Merge branch 'main' into next
bluwy Nov 6, 2024
b21a075
Add svelte changeset
bluwy Nov 6, 2024
d63d87d
[ci] release (beta) (#12370)
astrobot-houston Nov 6, 2024
f5f7109
fix: error overlay message escape (#12305)
florian-lefebvre Nov 8, 2024
823e73b
fix(actions): better runtime check for invalid usages (#12402)
ematipico Nov 8, 2024
9cca108
Fix incorrect status code in dev server for action errors (#12401)
bholmesdev Nov 8, 2024
d10f918
Actions middleware (#12373)
bholmesdev Nov 8, 2024
95d52a0
update markdown config docs (#12382)
sarah11918 Nov 11, 2024
471e712
[ci] format
sarah11918 Nov 11, 2024
bdb75a8
fix(routing): emit error for forbidden rewrite (#12339)
ematipico Nov 11, 2024
e723e9e
[ci] release (#12403)
astrobot-houston Nov 13, 2024
acac0af
fix(routing): middleware in dev (#12420)
ematipico Nov 13, 2024
3b3bc9b
[ci] release (#12422)
astrobot-houston Nov 13, 2024
3c72cdb
Merge branch 'main' into next
ematipico Nov 13, 2024
b745e38
[ci] release (beta) (#12405)
astrobot-houston Nov 13, 2024
0462219
Fix script injection during build (#12392)
apatel369 Nov 14, 2024
bdc0890
[ci] format
ematipico Nov 14, 2024
4364bff
fix(actions): internal symbol check (#12424)
ematipico Nov 14, 2024
9fc2ab8
Update to svelte 5 (#12364)
jdtjenkins Nov 14, 2024
e64ec5f
chore: breakdown of benchmarks (#12433)
ematipico Nov 14, 2024
453ec6b
prevents access to the history state if not set (#12436)
martrapp Nov 15, 2024
5509117
[ci] release (#12427)
astrobot-houston Nov 15, 2024
671f50c
Merge branch 'main' into next
bluwy Nov 15, 2024
bde49f1
Publish missing file for svelte integration (#12442)
bluwy Nov 15, 2024
8e135b6
[ci] release (#12443)
astrobot-houston Nov 15, 2024
c8f877c
fix: skip legacy typegen by default (#12438)
ascorbic Nov 15, 2024
af867f3
feat: experimental responsive images (#12377)
ascorbic Nov 15, 2024
cec4af8
Add publint checks (#12445)
bluwy Nov 15, 2024
e246dc5
Update markdown.shiki configuration docs (#12447)
sarah11918 Nov 15, 2024
25baa4e
Ensure final asset directory exists before writing cached files (#12418)
oliverlynch Nov 15, 2024
6a243bf
Update links to linting and formatting files in the style guide (#12468)
mandar1jn Nov 18, 2024
733d6c1
ci: remove owner check to enable external PR jobs (#12466)
ematipico Nov 18, 2024
cc03d90
ci: filter paths of when running the benchmark action (#12470)
ematipico Nov 18, 2024
3bde4aa
chore: use Biome VCS ignore file (#12465)
ematipico Nov 18, 2024
f649340
[ci] format
ematipico Nov 18, 2024
80a9a52
fix: content layer glob deletion (#12476)
florian-lefebvre Nov 19, 2024
46f6b38
fix(build): generated entry (#12477)
ematipico Nov 19, 2024
c48916c
feat(astro): add Built-in SVG component support (#12067)
stramel Nov 19, 2024
c3b7e7c
Remove default throw behavior in astro:env (#12480)
matthewp Nov 20, 2024
ab0580b
refactor(build): don't emit `middleware.mjs` (#12479)
ematipico Nov 20, 2024
e1a5e65
chore: clarify wording of responsive image props (#12482)
ascorbic Nov 20, 2024
3f8b072
chore: better images changeset (#12483)
ascorbic Nov 20, 2024
18a04c0
chore: better images changeset pt 2 (#12484)
ascorbic Nov 20, 2024
28dd3ce
fix: server island hydration (#12444)
ematipico Nov 20, 2024
a23985b
fix: return correct locale in root 404 and 500 page with i18n (#12365)
apatel369 Nov 21, 2024
e329657
[ci] format
ematipico Nov 21, 2024
3f02d5f
feat: support new location for content config (#12475)
ascorbic Nov 21, 2024
8a46e80
Resolve peer dependency problem in the integration packages (SolidJS,…
marbrex Nov 21, 2024
b9c05f4
[ci] release (#12452)
astrobot-houston Nov 21, 2024
8309c61
feat(next): astro:routes:resolved (#12329)
florian-lefebvre Nov 21, 2024
285c6e3
chore: merge fixes
ematipico Nov 21, 2024
a9ce785
[ci] release (beta) (#12430)
astrobot-houston Nov 21, 2024
dc3d842
Call server island early so it can set headers (#12486)
matthewp Nov 21, 2024
3bed805
[ci] release (#12490)
astrobot-houston Nov 21, 2024
23dc937
Merge main into next (#12493)
matthewp Nov 21, 2024
10beb17
[ci] release (beta) (#12491)
astrobot-houston Nov 21, 2024
b140a3f
fix(routing): don't access Request headers (#12498)
ematipico Nov 22, 2024
3dc714a
ci: exit pre if needed (#12502)
ascorbic Nov 22, 2024
a081175
Merge branch 'main' into next
ascorbic Nov 22, 2024
c6a31e3
ci: fix changeset action (#12504)
ascorbic Nov 22, 2024
82d89a7
Merge branch 'main' into next
ascorbic Nov 22, 2024
a326c2f
feat(examples): New basics template (#12472)
Princesseuh Nov 22, 2024
d023682
Fix SVG Component sprite ids (#12511)
stramel Nov 23, 2024
46b8a71
Delete empty `server-islands` example (#12512)
delucis Nov 24, 2024
30c78ba
[docs] remove legacy/experimental flags from config reference (#12487)
sarah11918 Nov 25, 2024
14feaf3
Rename Action query param to _action (#12510)
bholmesdev Nov 25, 2024
0910a32
fix(examples): Missing node types for toolbar example (#12519)
Princesseuh Nov 25, 2024
33b0e30
fix: allow content config in underscored dir (#12522)
ascorbic Nov 25, 2024
1ec852e
Update links in errors-data.ts (#12523)
sarah11918 Nov 25, 2024
cb9322c
fix: handle other elements before the `svg` element (#12516)
stramel Nov 25, 2024
36d8d92
[ci] release (#12501)
astrobot-houston Nov 26, 2024
1b61fdf
refactor(mdx): add entrypoint as full path file (#12533)
ematipico Nov 26, 2024
c348032
Merge branch 'main' into next
ematipico Nov 26, 2024
a2f90ce
[ci] release (beta) (#12503)
astrobot-houston Nov 26, 2024
8b0e36c
chore: fix linting warnings (#12526)
ematipico Nov 26, 2024
cf0d8b0
fix(i18n): render `404.astro` when i18n is enabled (#12525)
ematipico Nov 26, 2024
6fc29e3
fix(deps): update all non-major dependencies (#12410)
renovate[bot] Nov 27, 2024
9f44019
Update Vite to 6.0.0 (#12524)
bluwy Nov 27, 2024
f71052d
ci: fetch changeset base branch when snapshot (#12508)
ascorbic Nov 27, 2024
65e50eb
Fix JPEG image size determination (#12542)
kadykov Nov 27, 2024
827093e
Drop node 21 support (#12539)
bluwy Nov 27, 2024
6eac6ba
[ci] release (#12536)
astrobot-houston Nov 27, 2024
2da81e5
Merge branch 'main' into next
ematipico Nov 27, 2024
5bdc8cd
update lock file
ematipico Nov 27, 2024
218267c
[ci] release (beta) (#12534)
astrobot-houston Nov 27, 2024
04aede3
Examples fixes and preview.astro.new support (#12543)
delucis Nov 27, 2024
84ce4be
Merge branch 'main' into next
delucis Nov 27, 2024
6f47936
Use node 22 in CI (#12540)
bluwy Nov 27, 2024
875f8b9
ci: remove `next` from workflows (#12550)
ematipico Nov 28, 2024
c50882d
Merge pull request #12551 from withastro/next
ematipico Nov 28, 2024
6031962
chore: downgrade examples to not use beta releases (#12557)
ematipico Nov 28, 2024
97f413f
fix: generate types even without src/content (#12565)
ascorbic Nov 29, 2024
74ee2e4
[ci] format
ascorbic Nov 29, 2024
15f000c
fix: remove value and writable properties from headers descriptor (#1…
avanderbergh Dec 2, 2024
fa07002
fix(markdoc): correctly render boolean HTML attributes (#12584)
ascorbic Dec 2, 2024
b139390
fix(upgrade): enhance version comparison by normalizing `targetVersio…
apatel369 Dec 2, 2024
07b9ca8
fix(actions): explicitly import index.ts to fix types when moduleReso…
WesSouza Dec 2, 2024
315c5f3
Merge commit from fork
ematipico Dec 2, 2024
10c6b8d
[ci] format
ematipico Dec 2, 2024
3a76353
fix: update tests (#12586)
ematipico Dec 2, 2024
1dc8f5e
Node 22 housekeeping (#12559)
delucis Dec 2, 2024
3a144b1
Update examples for v5 (#12588)
delucis Dec 3, 2024
b731b3d
fix: make image endpoint highest priority (#12591)
ascorbic Dec 3, 2024
bc18c3c
chore: exit pre-mode (#12553)
ematipico Dec 3, 2024
fcdd37f
[ci] release (#12567)
astrobot-houston Dec 3, 2024
f81f15a
chore: remove next badge from readme (#12592)
ematipico Dec 3, 2024
2453cac
test: update `sitemap` tests to use the latest `@astrojs/node` (#12593)
ematipico Dec 3, 2024
4f2fd0a
fix: cleanup peer deps ranges (#12594)
Princesseuh Dec 3, 2024
92c269b
fix: devtools warnings about dev toolbar form fields (#12590)
kidonng Dec 3, 2024
7a02982
[ci] release (#12595)
astrobot-houston Dec 3, 2024
3be8eab
fix(examples): update Sass usage in Starlog example (#12596)
ArmandPhilippot Dec 3, 2024
c17a364
[ci] format
ematipico Dec 3, 2024
0724929
fix: include undefined in types for getEntry with content layer (#12601)
ascorbic Dec 3, 2024
557fdae
chore: add null check (#12607)
ascorbic Dec 3, 2024
3072287
chore: update examples to use latest node (#12603)
ematipico Dec 3, 2024
9b5f3a7
refactor: use `vitest` for benchmarks (#12605)
ematipico Dec 3, 2024
2ee8412
[ci] format
ematipico Dec 3, 2024
52c8f98
feat: make basics link point to final article (#12600)
Princesseuh Dec 3, 2024
44af543
[ci] release (#12606)
astrobot-houston Dec 3, 2024
19b3ac0
fix(upgrade): verify `astro` installation before upgrade to prevent f…
apatel369 Dec 4, 2024
f56d349
ci: update repro link (#12620)
ematipico Dec 4, 2024
62939ad
Remove misleading warning when using a custom renderer (#12461)
kyr0 Dec 4, 2024
29bcdf5
Improve serverEntrypoint codegen (#12566)
bluwy Dec 4, 2024
0e4fecb
fix: handle uppercase image file extensions (#12623)
ascorbic Dec 4, 2024
b073014
[ci] format
ascorbic Dec 4, 2024
24edead
chore: use the `/repro` route for reproduction (#12627)
ematipico Dec 4, 2024
348c71e
fix(db): import base virtual module ID (#12628)
ascorbic Dec 4, 2024
74bfad0
fix: experimental svg types (#12625)
ematipico Dec 4, 2024
350b3da
[docs] removes link in config reference (#12630)
sarah11918 Dec 4, 2024
e6b8017
fix custom `assetFileNames` issue (#12449)
apatel369 Dec 4, 2024
176fe9f
[ci] format
ematipico Dec 4, 2024
dec0305
fix: don't apply duplicate class to images (#12631)
ascorbic Dec 4, 2024
6b6e18d
fix(i18n): pass search params to fallback (#12547)
mtwilliams-code Dec 5, 2024
10fdf3d
[ci] format
ematipico Dec 5, 2024
8a551c1
Clean up content layer sync in build and sync api (#12633)
bluwy Dec 5, 2024
22e405a
fix: use correct datastore location in test environment (#12640)
ascorbic Dec 5, 2024
ff18b9c
chore: better warning (#12642)
ematipico Dec 5, 2024
9cda184
[ci] format
ematipico Dec 5, 2024
8704c54
[docs] update error message URLs (#12645)
sarah11918 Dec 5, 2024
03958d9
Improve Zod error messages and user config error messages (#12634)
delucis Dec 5, 2024
48ca399
fix: correctly copy to clipboard in `astro info` (#12641)
ascorbic Dec 5, 2024
86abfa5
[ci] format
ascorbic Dec 5, 2024
5b9b618
fix(@astrojs/rss): use standard rss content type, add utf-8 charset (…
kunyan Dec 5, 2024
306c9f9
Keep clientAddress on cloned requests (#12613)
matthewp Dec 5, 2024
d14d967
[ci] format
ematipico Dec 5, 2024
e216250
fix(ssr): duplicate custom headers (#12518)
ematipico Dec 5, 2024
a5b1735
[ci] release (#12617)
astrobot-houston Dec 5, 2024
87231b1
Bugfix/extra whitespace in code (#12570)
GrimLink Dec 5, 2024
f13417b
Only parse frontmatter at top of file (#12646)
bluwy Dec 5, 2024
a71e9b9
Fix frontmatter parsing with utf8 bom (#12664)
bluwy Dec 6, 2024
8f8f15c
fix(routing): don't attach locals to request (#12647)
ematipico Dec 6, 2024
72c1d5d
[ci] format
ematipico Dec 6, 2024
e21c7e6
[error message] updates docs link (#12653)
sarah11918 Dec 6, 2024
a9373c0
fix: do not freeze process.env in dev (#12585)
florian-lefebvre Dec 9, 2024
2b53588
[ci] format
florian-lefebvre Dec 9, 2024
a203d5d
fix: catch image errors correctly (#12695)
ascorbic Dec 9, 2024
163cfd6
[ci] release (#12650)
astrobot-houston Dec 9, 2024
1c4a032
fix: escape image filenames (#12697)
ascorbic Dec 9, 2024
7dc2fca
chore: fix vite peer dependency issue for vue integration (#12688)
yoyo837 Dec 10, 2024
495f46b
fix(svg): conditional opt-in (#12694)
ematipico Dec 10, 2024
70cbd47
[ci] format
ematipico Dec 10, 2024
0d1eab5
fix: escape content module import paths (#12705)
ascorbic Dec 10, 2024
3169593
fix: xclip process runtime (#12658)
jurajkapsz Dec 10, 2024
f6c4214
fix: correctly check isOnline with port (#12706)
ascorbic Dec 10, 2024
2aaed2d
fix(middleware): don't import via entrypoint (#12707)
ematipico Dec 10, 2024
97c9265
Add React 19 stable as peer dependency for React integration (#12678)
bskimball Dec 11, 2024
b01c74a
fix: strip query string before checking md extension (#12712)
ascorbic Dec 11, 2024
d33c215
[ci] format
ascorbic Dec 11, 2024
99266fa
chore: refactor query param strip (#12714)
ascorbic Dec 11, 2024
b3dfd9b
[ci] format
ematipico Dec 11, 2024
929ce28
[ci] release (#12698)
astrobot-houston Dec 11, 2024
618de28
🐛 Fix isDbError()-guard does not work (#12416)
abegehr Dec 11, 2024
dff04a4
[ci] format
ematipico Dec 11, 2024
110fc01
chore: remove unused imports (#12696)
florian-lefebvre Dec 11, 2024
51ced3d
[ci] format
florian-lefebvre Dec 11, 2024
f1f3bc0
[ci] format
astrobot-houston Dec 11, 2024
ccc5ad1
fix(i18n): manual routing with rewrite (#12718)
ematipico Dec 11, 2024
14dffcc
fix(actions): support trailing slash (#12657)
darkmaga Dec 11, 2024
eef4b74
[ci] format
ematipico Dec 11, 2024
358eae8
chore: fixes the version of astrojs/db (#12719)
ascorbic Dec 12, 2024
e3bfd93
fix(i18n): parse params and props correctly with fallback (#12709)
mtwilliams-code Dec 12, 2024
799c867
[ci] format
ematipico Dec 12, 2024
029661d
fix: use atomic writes for data store file operations (#12715)
ascorbic Dec 13, 2024
72f30dd
[ci] format
ascorbic Dec 13, 2024
ee66a45
Adds `closedby` to dialog interface (#12728)
argyleink Dec 13, 2024
8b1cecd
Add inert attribute to boolean list (#12729)
JoeMorgan Dec 13, 2024
901c21f
test: make tailwind test more stable (#12732)
ematipico Dec 13, 2024
7c7398c
fix(cli): let sync throw in check (#12726)
florian-lefebvre Dec 13, 2024
564ac6c
feat: route manifest refactor (#12597)
florian-lefebvre Dec 16, 2024
25c1e59
[ci] format
florian-lefebvre Dec 16, 2024
33ae732
[ci] release (#12716)
astrobot-houston Dec 16, 2024
c879f50
Revert "fix custom `assetFileNames` issue (#12449)" (#12746)
matthewp Dec 16, 2024
a793557
[ci] format
matthewp Dec 16, 2024
d891d5d
[ci] release (#12748)
astrobot-houston Dec 16, 2024
039d022
Clean sourcemaps from static output (#12749)
matthewp Dec 16, 2024
0ac0f25
fix: add support for `react-compiler-runtime` (#12735)
stipsan Dec 16, 2024
75de4a8
[ci] format
matthewp Dec 16, 2024
391df0e
Add changeset (#12755)
matthewp Dec 16, 2024
a44cfb8
[ci] release (#12753)
astrobot-houston Dec 16, 2024
95795f8
Remove debug logging from output (#12756)
matthewp Dec 16, 2024
3ff00a6
[ci] release (#12759)
astrobot-houston Dec 17, 2024
483da89
Adds types for `?url&inline` & `?url&no-inline` import queries (#12758)
delucis Dec 17, 2024
8da2318
fix: invoke vite.build with up to date configuration during astro:bui…
rbsummers Dec 17, 2024
ca3ff15
docs: Fix typos in config.ts (#12769)
anaxite Dec 18, 2024
3dc02c5
feat(assets): Use entity-tags to revalidate cached remote images (#12…
oliverlynch Dec 18, 2024
b4fec3c
Sessions API (#12441)
ascorbic Dec 18, 2024
a94e309
[ci] format
ematipico Dec 18, 2024
a581c15
[ci] format
astrobot-houston Dec 18, 2024
36c1e06
fix: clear the content layer cache when the Astro config changes (#12…
ascorbic Dec 18, 2024
c9d5110
feat(actions): getActionPath() (#12721)
florian-lefebvre Dec 18, 2024
45c3f33
[ci] format
ematipico Dec 18, 2024
1ec5b44
chore(deps): update unstorage and use new syntax (#12783)
ascorbic Dec 19, 2024
45005a5
[ci] format
ematipico Dec 19, 2024
4353fc5
fix: correctly return 404.astro in i18n (#12764)
ematipico Dec 19, 2024
e56af4a
chore: changeset (#12786)
ematipico Dec 19, 2024
3f557b2
[ci] release (#12762)
astrobot-houston Dec 19, 2024
73b6c8b
chore: fix links in session errors (#12787)
ascorbic Dec 19, 2024
5e9d1bc
chore: move files to `.mjs` (#12765)
ematipico Dec 19, 2024
f632b94
fix: pass raw frontmatter to when parsing markdown in glob loader (#1…
ascorbic Dec 19, 2024
49cc5d7
[ci] format
ascorbic Dec 19, 2024
f3d8385
update comment in packages/astro/src/types/public/common.ts (#12782)
fhiromasa Dec 20, 2024
739dbfb
fix(deps): upgrade Vite (#12799)
ascorbic Dec 20, 2024
5f4c543
[ci] release (#12790)
astrobot-houston Dec 20, 2024
7b0cb85
fix: better logs for invalid content config (#12798)
ascorbic Dec 20, 2024
98f9e83
fix(toolbar): assign label to icons (#12734)
ematipico Dec 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
5 changes: 5 additions & 0 deletions .changeset/afraid-sloths-shake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Improves warning logs for invalid content collection configuration
6 changes: 4 additions & 2 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"$schema": "https://unpkg.com/@changesets/config@1.7.0/schema.json",
"$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
"changelog": ["@changesets/changelog-github", { "repo": "withastro/astro" }],
"commit": false,
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["@example/*", "@test/*"]
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
"onlyUpdatePeerDependentsWhenOutOfRange": true
}
}
5 changes: 0 additions & 5 deletions .changeset/pretty-pumpkins-work.md

This file was deleted.

13 changes: 13 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM mcr.microsoft.com/devcontainers/javascript-node:1-18

# Install playwright
RUN npm install -g @playwright/test

# Install latest pnpm
RUN npm install -g pnpm

RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& curl -sSL https://dl.google.com/linux/direct/google-chrome-stable_current_$(dpkg --print-architecture).deb -o /tmp/chrome.deb \
&& apt-get -y install /tmp/chrome.deb

COPY welcome-message.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt
34 changes: 34 additions & 0 deletions .devcontainer/basics/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "Basics",
"build": {
"dockerfile": "../examples.Dockerfile"
},

"workspaceFolder": "/workspaces/astro/examples/basics",

"portsAttributes": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [4321],

"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

"waitFor": "postCreateCommand",

"postAttachCommand": {
"Server": "pnpm start --host"
},

"customizations": {
"codespaces": {
"openFiles": ["src/pages/index.astro"]
},
"vscode": {
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
}
}
}
34 changes: 34 additions & 0 deletions .devcontainer/blog/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "Blog",
"build": {
"dockerfile": "../examples.Dockerfile"
},

"workspaceFolder": "/workspaces/astro/examples/blog",

"portsAttributes": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [4321],

"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

"waitFor": "postCreateCommand",

"postAttachCommand": {
"Server": "pnpm start --host"
},

"customizations": {
"codespaces": {
"openFiles": ["src/pages/index.astro"]
},
"vscode": {
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
}
}
}
21 changes: 21 additions & 0 deletions .devcontainer/component/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "Component Template",
"build": {
"dockerfile": "../examples.Dockerfile"
},

"workspaceFolder": "/workspaces/astro/examples/component",

"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

"waitFor": "postCreateCommand",

"customizations": {
"codespaces": {
"openFiles": ["src/MyComponent.astro"]
},
"vscode": {
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
}
}
}
27 changes: 27 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "Contribute to Astro",
"build": {
"dockerfile": "Dockerfile"
},

"features": {
"ghcr.io/devcontainers/features/desktop-lite:1": {}
},

"postCreateCommand": "pnpm install && pnpm run build",

"waitFor": "postCreateCommand",

"postAttachCommand": {
"Astro tests": "pnpm run test"
},

"customizations": {
"codespaces": {
"openFiles": ["README.md", "CONTRIBUTING.md"]
},
"vscode": {
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
}
}
}
34 changes: 34 additions & 0 deletions .devcontainer/docs/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "Docs Site",
"build": {
"dockerfile": "../examples.Dockerfile"
},

"workspaceFolder": "/workspaces/astro/examples/docs",

"portsAttributes": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [4321],

"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

"waitFor": "postCreateCommand",

"postAttachCommand": {
"Server": "pnpm start --host"
},

"customizations": {
"codespaces": {
"openFiles": ["src/pages/index.astro"]
},
"vscode": {
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
}
}
}
5 changes: 5 additions & 0 deletions .devcontainer/example-welcome-message.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
👋 Welcome to "Astro" in GitHub Codespaces!

🛠️ Your environment is fully setup with all the required software.

🚀 The example app should automatically start soon in a new terminal tab.
6 changes: 6 additions & 0 deletions .devcontainer/examples.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM mcr.microsoft.com/devcontainers/javascript-node:1-18

# Install latest pnpm
RUN npm install -g pnpm

COPY example-welcome-message.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt
34 changes: 34 additions & 0 deletions .devcontainer/framework-alpine/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "Alpine",
"build": {
"dockerfile": "../examples.Dockerfile"
},

"workspaceFolder": "/workspaces/astro/examples/framework-alpine",

"portsAttributes": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [4321],

"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

"waitFor": "postCreateCommand",

"postAttachCommand": {
"Server": "pnpm start --host"
},

"customizations": {
"codespaces": {
"openFiles": ["src/pages/index.astro"]
},
"vscode": {
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
}
}
}
34 changes: 34 additions & 0 deletions .devcontainer/framework-lit/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "Lit",
"build": {
"dockerfile": "../examples.Dockerfile"
},

"workspaceFolder": "/workspaces/astro/examples/framework-lit",

"portsAttributes": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [4321],

"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

"waitFor": "postCreateCommand",

"postAttachCommand": {
"Server": "pnpm start --host"
},

"customizations": {
"codespaces": {
"openFiles": ["src/pages/index.astro"]
},
"vscode": {
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
}
}
}
34 changes: 34 additions & 0 deletions .devcontainer/framework-multiple/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "Kitchen Sink (Multiple Frameworks)",
"build": {
"dockerfile": "../examples.Dockerfile"
},

"workspaceFolder": "/workspaces/astro/examples/framework-multiple",

"portsAttributes": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [4321],

"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

"waitFor": "postCreateCommand",

"postAttachCommand": {
"Server": "pnpm start --host"
},

"customizations": {
"codespaces": {
"openFiles": ["src/pages/index.astro"]
},
"vscode": {
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
}
}
}
34 changes: 34 additions & 0 deletions .devcontainer/framework-preact/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "Preact",
"build": {
"dockerfile": "../examples.Dockerfile"
},

"workspaceFolder": "/workspaces/astro/examples/framework-preact",

"portsAttributes": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [4321],

"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

"waitFor": "postCreateCommand",

"postAttachCommand": {
"Server": "pnpm start --host"
},

"customizations": {
"codespaces": {
"openFiles": ["src/pages/index.astro"]
},
"vscode": {
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
}
}
}
34 changes: 34 additions & 0 deletions .devcontainer/framework-react/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "React",
"build": {
"dockerfile": "../examples.Dockerfile"
},

"workspaceFolder": "/workspaces/astro/examples/framework-react",

"portsAttributes": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [4321],

"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

"waitFor": "postCreateCommand",

"postAttachCommand": {
"Server": "pnpm start --host"
},

"customizations": {
"codespaces": {
"openFiles": ["src/pages/index.astro"]
},
"vscode": {
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
}
}
}
Loading