The web framework for content-driven websites. ⭐️ Star to support our work!
OTHER License
Published by astrobot-houston 7 months ago
2cf116f80cb5e421ab5cc5eb4a654e7b78c1b8de
, 374efcdff9625ca43309d89e3b9cfc9174351512
]:
Published by astrobot-houston 7 months ago
#10632 da2fb875fc58b65a21d37a3d29f570fa20b5219c
Thanks @bluwy! - Moves @astrojs/markdown-remark
as a dependency
Updated dependencies [2cf116f80cb5e421ab5cc5eb4a654e7b78c1b8de
, 374efcdff9625ca43309d89e3b9cfc9174351512
]:
Published by astrobot-houston 7 months ago
#10599 5a7733dde52d439402404d5207a2b1d897c4e025
Thanks @bholmesdev! - Seed database on dev server startup, and log whenever the seed file is reloaded.
#10636 504d15d77291f0fe36aa9fecc22f276b734f83cb
Thanks @bholmesdev! - Detailed error messages for remote database exceptions.
#10635 17badaf55c79cec460c74f4da58bf188eedef7e3
Thanks @matthewp! - Give proper error when seed missing default export
#10631 157392ee44db08de0d3c01222644dae0a904044d
Thanks @matthewp! - Make ASTRO_DATABASE_FILE work with file paths
Published by astrobot-houston 7 months ago
#10596 20463a6c1e1271d8dc3cb0ab3419ee5c72abd218
Thanks @Princesseuh! - Add removeBase
function
Updated dependencies [20463a6c1e1271d8dc3cb0ab3419ee5c72abd218
]:
Published by astrobot-houston 7 months ago
20463a6c1e1271d8dc3cb0ab3419ee5c72abd218
Thanks @Princesseuh! - Add removeBase
functionPublished by astrobot-houston 7 months ago
a573cc199a00d35410197ba4117c97764a984dc0
Thanks @tk04! - The isr.exclude
configuration can now include routes with dynamic and spread parameters.
export default defineConfig({
adapter: vercel({
isr: {
exclude: [
"/blog/[title]"
"/api/[...slug]",
]
}
})
})
Published by astrobot-houston 7 months ago
20463a6c1e1271d8dc3cb0ab3419ee5c72abd218
]:
Published by astrobot-houston 7 months ago
#10589 ed1031ba29af9a8a89ab386d772a228ba1414b4d
Thanks @column.text(),! - Update the table indexes configuration to allow generated index names. The indexes
object syntax is now deprecated in favor of an array.
You can update your indexes
configuration object to an array like so:
import { defineDb, defineTable, column } from 'astro:db';
const Comment = defineTable({
columns: {
postId: column.number(),
body: column.text(),
},
- indexes: {
- postIdIdx: { on: 'postId' },
- authorPostIdIdx: { on: ['author, postId'], unique: true },
- },
+ indexes: [
+ { on: 'postId' /* 'name' is optional */ },
+ { on: ['author, postId'], unique: true },
+ ]
})
This example will generate indexes with the names Comment_postId_idx
and Comment_author_postId_idx
, respectively. You can specify a name manually by adding the name
attribute to a given object. This name will be global, so ensure index names do not conflict between tables.
Published by astrobot-houston 7 months ago
#10567 fbdc10f90f7baa5c49f2f53e3e4ce8f453814c01
Thanks @Princesseuh! - Fixes astro:assets
not working when using complex config with vite.build.rollupOptions.output.assetFileNames
#10593 61e283e5a0d95b6ef5d3c4c985d6ee78f74bbd8e
Thanks @Princesseuh! - Fixes Polymorphic type helper causing TypeScript errors in certain cases after the previous update
#10543 0fd36bdb383297b32cc523b57d2442132da41595
Thanks @matthewp! - Fixes inline stylesheets with content collections cache
#10582 a05953538fcf524786385830b99c0c5a015173e8
Thanks @lilnasy! - Fixes an issue where the dev server got stuck in a loop while routing responses with a 404 status code to the 404 route.
Published by astrobot-houston 7 months ago
#10587 62a1d6df6916e08cb25d51814dfad352bc4cce75
Thanks @matthewp! - Conditionally drop table with --force-reset
#10460 713abb2998bc179443a476f6274432b2fc7d8434
Thanks @bholmesdev! - Remove legacy Astro DB internals using the "collections" naming convention instead of "tables."
Published by astrobot-houston 7 months ago
#10579 f5df12cfebba1abdef50faa7a5549b545f0b3f8c
Thanks @matthewp! - Provide guidance when --remote is missing
When running the build astro build
without the --remote
, either require a DATABASE_FILE
variable be defined, which means you are going expert-mode and having your own database, or error suggesting to use the --remote
flag.
#10568 764d67fc3f399d62b6a97a2ee698dca03b9f0557
Thanks @matthewp! - Prevent runtime from importing core code
Published by astrobot-houston 7 months ago
#10549 54c2f9707f5d038630143f769e3075c698474654
Thanks @admirsaheta! - Updates the HTMLAttributes
type exported from astro
to allow data attributes
#10562 348c1ca1323d0516c2dcf8e963343cd12cb5407f
Thanks @apetta! - Fixes minor type issues inside the built-in components of Astro
#10550 34fa8e131b85531e6629390307108ffc4adb7ed1
Thanks @Skn0tt! - Fixes bug where server builds would include unneeded assets in SSR Function, potentially leading to upload errors on Vercel, Netlify because of size limits
Updated dependencies [c585528f446ccca3d4c643f4af5d550b93c18902
]:
Published by astrobot-houston 7 months ago
c585528f446ccca3d4c643f4af5d550b93c18902
Thanks @imkunet! - This patch allows Shiki to use all of its reserved languages instead of thePublished by astrobot-houston 7 months ago
5f7e9c47e01116f6ec74b33770f480404680956a
Thanks @mingjunlu! - Fixes an issue where the base path is missing in sitemap-index.xml
.Published by astrobot-houston 7 months ago
c585528f446ccca3d4c643f4af5d550b93c18902
]:
Published by astrobot-houston 7 months ago
b5a80405b93a166f6f019209152b860ffe2f73ef
Thanks @bholmesdev! - Fix db.run()
type signature in production.Published by astrobot-houston 7 months ago
#10532 8306ce1ff7b71a2a0d7908336c9be462a54d395a
Thanks @martrapp! - Fixes a style issue of client:only
components in DEV mode during view transitions.
#10473 627e47d67af4846cea2acf26a96b4124001b26fc
Thanks @bluwy! - Fixes and improves performance when rendering Astro JSX
Published by astrobot-houston 7 months ago
6576f5d458ee8cc872210f3a7ae629439546e361
Thanks @matthewp! - Ensure ASTRO_STUDIO_APP_TOKEN is found at runtimePublished by astrobot-houston 7 months ago
30ce9a0c47a4653a9e9619380a6514459563cf92
Thanks @matthewp! - Fix accessing remote database URLPublished by astrobot-houston 7 months ago
980020c5e0935a2e0e177164d02f5e49f0a9ab4b
Thanks @matthewp! - Ensure --force-reset drops previous tables