Back to blog
Mar 08, 2025
1 min read

Astro Fix Paths

A custom AstroJS plugin that will automatically fix output file paths for deployment on Itch.io

UPDATE package evolved into astro-itchio-publisher, a more powerful tool astro-fix-paths ~unpublished astro-itchio-publisher live on astrojs integrations

An AstroJS integration that fixes output paths for Itch.io deployment.

Installation

npm install astro-fix-paths

Usage Modify astro.config.mjs:

import { defineConfig } from 'astro/config';
import astroFixPaths from 'astro-fix-paths';

export default defineConfig({
  integrations: [astroFixPaths()],
});

๐ŸŽ‰ Done!


Publishing to NPM

Login to NPM

First, if youโ€™re not already logged in, run:

npm login

Publish Your Package Run:

npm publish --access public