Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ pnpm-debug.log*
.astro/

# VScode
.vscode/
.vscode/
# Local Netlify folder
.netlify
2 changes: 0 additions & 2 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
# Expose Astro dependencies for `pnpm` users
shamefully-hoist=true
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ The fact that Astropod comes configured by default with Decap does not mean that

## Requirements.

- Node 16.16.0 or higher
- Node 18.14.0 or higher
## Commands

All commands are run from the root of the project, from a terminal:
Expand All @@ -76,6 +76,13 @@ All commands are run from the root of the project, from a terminal:
> These commands are using [`pnpm`][pnpm], but you can choose to use `npm` or `yarn` instead if you prefer.


## Migración a Astro v5

- Proyecto actualizado a `[email protected]` junto con las integraciones oficiales (`@astrojs/mdx`, `@astrojs/tailwind`, `@astrojs/rss`, `@astrojs/sitemap`) recomendadas en la [guía de migración](https://docs.astro.build/en/guides/upgrade-to/v3/).
- El tipado global ahora depende exclusivamente de `astro/client` (`src/env.d.ts`) y del preset `astro/tsconfigs/strict` para asegurar compatibilidad futura.
- No se utilizan APIs obsoletas como `<Markdown />`, `@astrojs/image` o `ViewTransitions` desde `astro:components`; las directivas `transition:*` siguen las reglas de Astro v5.
- Para reconstruir y validar la instalación posterior a los cambios, ejecuta `npm install --legacy-peer-deps` (requerido por `astro-netlify-cms`) seguido de `npm run build`.

## Project Structure

```php
Expand Down
24 changes: 10 additions & 14 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
import { defineConfig } from "astro/config";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import NetlifyCMS from "astro-netlify-cms";
import tailwindcss from "@tailwindcss/vite";
import dcapConfig from "./decap.config.mjs";
import astropodConfig from "./.astropod/astropod.config.json";
import robotsTxt from "astro-robots-txt";

// https://astro.build/config
import image from "@astrojs/image";
import netlify from "@astrojs/netlify";

// https://astro.build/config
export default defineConfig({
site: 'https://podcast.cucoders.dev',

integrations: [
robotsTxt({
policy: [
Expand All @@ -25,14 +24,11 @@ export default defineConfig({
}),
mdx(),
sitemap(),
tailwind(),
image({
serviceEntryPoint: "@astrojs/image/sharp",
cacheDir: "./.cache/image",
logLevel: "debug",
}),
NetlifyCMS({
config: dcapConfig(),
}),
],
});

vite: {
plugins: [tailwindcss()],
},

adapter: netlify(),
});
Loading