Commit graph

180 commits

Author SHA1 Message Date
tony-sull
7ccda57c1d [ci] format 2022-04-22 18:00:08 +00:00
Tony Sullivan
ce9a61e9fc
Support custom svelte compiler options in @astrojs/svelte (#3181)
* updating svelte integration to allow custom user config

* test: adding a test to verify that svelte options are piped through the integration

* updating the README with docs on overridding svelte options

* chore: adding changeset

* fix: copy/paste bug in test validation

* removing temporary debug scripts
2022-04-22 17:59:20 +00:00
matthewp
738fb958c3 [ci] format 2022-04-22 14:04:54 +00:00
Fred K. Schott
bd76716c88
[ci] update lockfile (#3162)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-04-22 10:04:01 -04:00
Juan Martín Seery
725c44a762
feat(vercel): Support trailingSlash (#3176) 2022-04-22 10:03:53 -04:00
Matthew Phillips
19667c45f3
Netlify Edge: forward requests for static assets (#3170)
* Netlify Edge: forward requests for static assets

* Adds a changeset

* Don't run edge tests, yet
2022-04-22 10:03:25 -04:00
Fred K. Schott
9c0fc6877a
Update Vercel adapter readme 2022-04-21 14:31:45 -07:00
Fred K. Schott
0b432c087a
Update README.md 2022-04-21 14:24:09 -07:00
github-actions[bot]
84939b2ff2
[ci] release (#3172)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-21 15:37:18 -05:00
natemoo-re
b6f14c3b14 [ci] format 2022-04-21 20:13:54 +00:00
Nate Moore
70263cf748
fix(preact): use updateConfig hook (#3166) 2022-04-21 15:13:09 -05:00
github-actions[bot]
0406bdc35b
[ci] release (#3165)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-21 12:19:52 -04:00
matthewp
8768f23f95 [ci] format 2022-04-21 16:11:09 +00:00
Matthew Phillips
ae9ac5cbdc
Fixes using React.lazy and Suspense (#3160)
* Revert "Revert "Fixes using React.lazy and Suspense""

This reverts commit e621c2f7d3.

* Adds a changeset

* Fix ts errors

* Remove netlify metadata folder
2022-04-21 12:10:06 -04:00
github-actions[bot]
3cdc5f1bfb
[ci] release (#3161)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-21 11:34:03 -04:00
matthewp
9fcac8e551 [ci] format 2022-04-21 15:13:24 +00:00
Matthew Phillips
e85b16e2b3
Make 'lit' always be bundled in SSR (#3164)
* Make 'lit' always be bundled in SSR

* Adds a changeset
2022-04-21 11:12:21 -04:00
Matthew Phillips
e621c2f7d3 Revert "Fixes using React.lazy and Suspense"
This reverts commit 700d4f9649.
2022-04-20 17:17:36 -04:00
unknown
700d4f9649 Fixes using React.lazy and Suspense 2022-04-20 17:17:11 -04:00
Matthew Phillips
eea9090ed5
Netlify adapter, add --build flag in the readme (#3157) 2022-04-20 12:25:22 -04:00
Fred K. Schott
00b8343844
[ci] update lockfile (#3153)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-04-20 09:42:31 -04:00
github-actions[bot]
fce98d5552
[ci] release (#3151)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-19 22:45:07 -07:00
natemoo-re
b3a423849b [ci] format 2022-04-19 18:38:14 +00:00
hippotastic
5e28b79095
Fix location of SolidJS pre-hydration code (#3140)
* Run before hydration instead of inlining a script after each component
2022-04-19 13:37:27 -05:00
github-actions[bot]
9e00f6d546
[ci] release (#3149)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-19 13:30:27 -04:00
matthewp
0f984473cf [ci] format 2022-04-19 17:14:44 +00:00
Matthew Phillips
05cf1a5067
Adjustments for Netlify Edge Functions (#3150)
* Adjustments for Netlify Edge Functions

* Adds a changeset
2022-04-19 13:13:52 -04:00
Tony Sullivan
44e294c9cb
Support custom vue compiler options in @astrojs/vue (#3143)
* adds support for passing options to @vitejs/plugin-vue

* updating vue integration README with options details

* adding a tests for custom vue compiler options

* chore: adding changeset
2022-04-19 16:31:32 +00:00
Matthew Phillips
550c7d0a94 Ignore test folder in Netlify 2022-04-19 11:45:19 -04:00
github-actions[bot]
95d0db5a44
[ci] release (#3120)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-19 11:30:34 -04:00
matthewp
13b1bdd972 [ci] format 2022-04-19 15:23:07 +00:00
Matthew Phillips
4cf54c60aa
Netlify Edge function support (#3148)
* Netlify Edge function support

* Update readme with edge function information

* Adds a changeset

* Disable running edge function test in CI for now
2022-04-19 11:22:15 -04:00
Juan Martín Seery
4ac3797344
feat(vercel): added warning when ENABLE_FILE_SYSTEM_API=1 is missing (#3139)
* Added warning in buildtime

* Updated readme

* Changeset
2022-04-18 19:19:46 -03:00
matthewp
089ce68f08 [ci] format 2022-04-15 21:02:19 +00:00
Matthew Phillips
e5383cd357
Handle static file serving in Deno adapter's start command (#3121)
* Handle static file serving in Deno adapter's start command

* Adds a changeset

* Ignore a .ts imort
2022-04-15 17:01:33 -04:00
Juan Martín Seery
b0ba22c5ff
fix(vercel): CJS bundle fix (#3051)
* fix(vercel): CJS bundle fix

* Changeset
2022-04-15 15:58:57 -04:00
github-actions[bot]
254048dc82
[ci] release (#3103)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-14 15:10:29 +00:00
matthewp
c6551289ee [ci] format 2022-04-14 13:52:56 +00:00
Matthew Phillips
4ac0d5d4e7
Support the Markdown component in SSR (#3036)
* Support the Markdown component in SSR

* Adds a changeset

* Support runtime markdown in Node.js

* Remove option from test adapter
2022-04-14 09:51:53 -04:00
Nate Moore
a391f5dc07
chore: add build:ci script to integrations (#3104) 2022-04-13 13:31:50 -04:00
tony-sull
1c8524505e [ci] format 2022-04-13 15:05:59 +00:00
Tony Sullivan
254a8f3749
Fixing bug that could lose Tailwind's default presets (#3099)
* fixing bug that could lose Tailwind's default presets

* updating integration README

* chore: adding changeset

* test: fixing the tailwind tests
2022-04-13 15:05:00 +00:00
github-actions[bot]
b23f6b1596
[ci] release (#3101)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-13 08:55:32 -04:00
github-actions[bot]
21926278ba
[ci] release (#3090)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-12 20:15:14 -07:00
matthewp
6d0b0597bd [ci] format 2022-04-12 20:50:59 +00:00
Matthew Phillips
a5caf08e24
Allow setting multiple cookies in Netlify adapter (#3092)
* Allow setting multiple cookies in Netlify adapter

* Adds a changeset

* Set the response status code

* Add a comment on why this is needed
2022-04-12 16:50:10 -04:00
Juan Martín Seery
f665d1a250
fix(vercel): support dynamic paths (#3081)
* fix(vercel): support dynamic paths

* Changeset
2022-04-12 10:02:59 -04:00
github-actions[bot]
0966a432a8
[ci] release (#3080)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-11 19:59:32 -07:00
hippotastic
9f248b0563
Make Netlify adapter actually append redirects (#3079) 2022-04-11 12:30:47 -07:00
github-actions[bot]
791a524411
[ci] release (#3064)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-10 21:13:11 -07:00
FredKSchott
83d83a7b04 [ci] format 2022-04-11 03:30:44 +00:00
Fred K. Schott
83613120a9 fix up changelogs 2022-04-10 20:29:51 -07:00
github-actions[bot]
21c74e572c
[ci] release (#3061)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-10 20:15:02 -07:00
Fred K. Schott
2bb6a06ebb revert release 2022-04-10 20:11:34 -07:00
FredKSchott
e2e28ca23e [ci] format 2022-04-11 03:02:11 +00:00
github-actions[bot]
46f02d9cf4
[ci] release (#3060)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-10 20:01:00 -07:00
Fred K. Schott
77c0be5b26
update lockfile (#3059) 2022-04-10 19:12:30 -07:00
Fred K. Schott
c05a544acd update tailwind integration readme 2022-04-10 18:12:34 -07:00
FredKSchott
39e0a7d757 [ci] format 2022-04-10 21:35:37 +00:00
Fred K. Schott
fbc32cf655
remove site requirement from netlify adapter (#3041)
* remove site requirement from netlify adapter

* update readme
2022-04-10 14:34:49 -07:00
Juan Martín Seery
982f64f69a
chore: updated esbuild (#3028)
* chore: updated esbuild

* Changeset
2022-04-10 14:33:10 -07:00
github-actions[bot]
a5aea2ce56
[ci] release (beta) (#3023)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-07 15:22:47 -04:00
matthewp
c757427fca [ci] format 2022-04-07 17:23:16 +00:00
Matthew Phillips
8c04ff1f0b
Allow an adapter to export default (#3022)
* Allow an adapter to export default

* Adds a changeset
2022-04-07 13:21:56 -04:00
natemoo-re
5b51d81889 [ci] format 2022-04-06 21:41:37 +00:00
github-actions[bot]
1d0c1d8977
[ci] release (beta) (#3007)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-06 16:40:46 -05:00
matthewp
340cc1c8e4 [ci] format 2022-04-06 20:22:36 +00:00
Matthew Phillips
c6f8bce7c3
Fix Netlify adapter and dynamic routes (#3011)
* Fix Netlify adapter and dynamic routes

* Changeset
2022-04-06 16:21:46 -04:00
Juan Martín Seery
8bd49c9536
fix(integrations): astro:build:done dir now matches SSR client output (#3008)
* `dir` now matches client output

* Updated integrations

* Changeset
2022-04-06 16:20:58 -04:00
Ryan Carniato
13b782f421
fix: Nested hydration with Solid (#3003)
* fix: solid nested hydration

* Create ten-rice-unite.md

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-04-06 14:42:01 -05:00
Juan Martín Seery
b5ed099eaf
fix: @astrojs/vercel bug fixes (#3000)
* Fixed outDir

* Updated server out

* changeset

* Renamed out to tmp
2022-04-06 14:15:46 -03:00
Nate Moore
ba90ef53d3
Update readme.md 2022-04-06 10:27:16 -05:00
matthewp
cf92954e5a [ci] format 2022-04-05 19:29:23 +00:00
github-actions[bot]
48d01049b0
[ci] release (beta) (#2997)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-05 15:28:29 -04:00
Ben Holmes
77aa3a5c50
Docs: netlify adapter site requirement (#2996)
* feat: human-readable error on bad site or base

* fix: human-readable error should have 1 config option

* docs: update README

* chore: changeset

* docs: mention localhost for testing via netlify CLI
2022-04-05 11:25:48 -04:00
github-actions[bot]
2552db0d09
[ci] release (#2975)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-03 23:25:00 -07:00
JuanM04
bf2199e1df
New astro config 2022-04-02 18:59:03 -03:00
JuanM04
ccce433994
Formatted 2022-04-02 18:56:13 -03:00
JuanM04
a377ac1efc
Merge branch 'main' into feat/vercel-adapter 2022-04-02 18:53:00 -03:00
Fred K. Schott
1335797903
update prettier width (#2968) 2022-04-02 14:15:41 -06:00
FredKSchott
d63213f119 [ci] format 2022-04-02 19:50:17 +00:00
github-actions[bot]
7fe149ae43
[ci] release (#2969)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-02 13:49:27 -06:00
Fred K. Schott
e425f896b6 Revert "[ci] release (#2925)"
This reverts commit 48c9b142cc.
2022-04-02 13:46:25 -06:00
FredKSchott
d047baad11 [ci] format 2022-04-02 19:41:44 +00:00
github-actions[bot]
48c9b142cc
[ci] release (#2925)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-02 13:40:46 -06:00
Fred K. Schott
3483cc2285
exit prerelease mode (#2967) 2022-04-02 13:37:28 -06:00
Nate Moore
17c02925c5
Migrate to new config (#2962)
* wip: config migration

* fix: formatting

* refactor: projectRoot -> root

* refactor: pageUrlFormat -> format

* refactor: buildOptions.site -> site

* refactor: public -> publicDir

* refactor: dist -> outDir

* refactor: styleOptions -> style

* fix: some dist tests -> outDir

* refactor: remove legacyBuild (with TODOs)

* refactor: more legacyBuild cleanup

* refactor: server host and port

* fix: remove experimentalStaticBuild CLI flag

* refactor: src -> srcDir

* refactor: devOptions.trailing -> trailing

* refactor: remove sitemap + related flags

* refactor: experimentalSSR -> experimental.ssr

* fix: last devOptions

* refactor: drafts -> markdown.drafts

* fix: TS error on port as const

* refactor: remove pages

* refactor: more --project-root updates

* refactor: markdownOptions -> markdown

* fix: remaining type errors

* feat: update AstroUserConfig

* refactor: update CLI flag mapper + server mapper

* fix: loadFixture projectRoot

* fix: merge CLI flags before validating / transforming

* wip: attempt to fix bad createRouteManifest config

* refactor: combine config.base and config.site

* fix: skip route manifest test for now

* fix: site and base handling

* refactor: update failing config testes

* fix: build failure

* feat: update config types with migration help

* chore: update types

* fix(deno): update deno fixture

* chore: remove config migration logic

* chore: remove logLevel

* chore: clean-up config types

* chore: update config warning

* chore: add changeset

* Sitemap Integration (#2965)

* feat: add sitemap filter config option

* feat: add canonicalURL sitemap config option

* docs: update sitemap README

* fix: update for new config

* fix: filter not being applied

* chore: changeset

Co-authored-by: bholmesdev <hey@bholmes.dev>

* fred pass

* fix: Astro.resolve typo

* fix: public => publicDir

Co-authored-by: bholmesdev <hey@bholmes.dev>
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-04-02 12:29:59 -06:00
Tony Sullivan
226822cbbf
Allows projects to opt out of the base Tailwind styles (#2959)
* adding an option to opt-out of the Tailwind base styles

* chore: adding changeset description
2022-04-01 13:45:43 +00:00
JuanM04
60c5823ae1
Added some comments 2022-03-31 15:37:33 -03:00
JuanM04
56cb78bd40
Reverted config hook changes 2022-03-31 15:31:56 -03:00
JuanM04
c2f4dd44e3
Removed extra code 2022-03-31 15:14:04 -03:00
JuanM04
437e08e5ca
Updated readme 2022-03-31 15:12:43 -03:00
JuanM04
764467a21d
Merge branch 'main' into feat/vercel-adapter 2022-03-31 15:11:56 -03:00
Juan Martín Seery
d10c3dea21
fix: --experimental-ssr fixes (#2937)
* Replaced `--experimental-ssr` with `isBuildingToSSR`

* changest

* Improved `isBuildingToSSR` a bit

* Added `isBuildingToSSR` to more places!!1!

* Added `@deprecated` tag

* Replaced missing experimentalSsr

* Added failing test

* Removed test

* Re-added experimental ssr flag

* Fixed typo

Co-authored-by: Matthew Phillips <matthew@skypack.dev>

* Fixed deno tests

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-03-31 13:58:03 -04:00
matthewp
355c966f80 [ci] format 2022-03-31 17:02:05 +00:00
Fred K. Schott
3a4dc9e0a7
React 18 monorepo upgrade (#2948)
* First pass at supporting React 18 in @astrojs/react

* Try marking React 18’s `react-dom/client` as external

* Try a different approach to importing different React versions

* Allow resolving JSON modules

* Revert "Allow resolving JSON modules"

This reverts commit 5279b7249c.

* Try the separate client entrypoint approach from #2946

* Clean up diff

* Trying to see something

* Just keep swimming… 🐠

* update to support react 18

* update React to React 18 across the board

Co-authored-by: delucis <swithinbank@gmail.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-03-31 13:01:05 -04:00
matthewp
bdb9ba1c34 [ci] format 2022-03-31 16:52:34 +00:00
Fred K. Schott
57f48b2701
Add support for React 18 in @astrojs/react (#2947)
* First pass at supporting React 18 in @astrojs/react

* Try marking React 18’s `react-dom/client` as external

* Try a different approach to importing different React versions

* Allow resolving JSON modules

* Revert "Allow resolving JSON modules"

This reverts commit 5279b7249c.

* Try the separate client entrypoint approach from #2946

* Clean up diff

* Trying to see something

* Just keep swimming… 🐠

* update to support react 18

* add changeset

* add docs

Co-authored-by: delucis <swithinbank@gmail.com>
2022-03-31 12:51:29 -04:00
JuanM04
e890b528c4
Build to CommonJS 2022-03-30 23:08:39 -03:00
JuanM04
20c3969a43
Merge branch 'main' into feat/vercel-adapter 2022-03-30 21:50:41 -03:00