vite-static-asset-proxy-debug

Community

Fix Vite dev static asset proxy issues in minutes

Authorfreedomw1987
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill solves the common issue where backend-served static assets (such as images and files) load correctly in production but return HTML instead of binary content when accessed via a local Vite dev server, breaking inline previews and asset display.

Core Features & Use Cases

  • Proxy Configuration Guidance: Provides the exact Vite config setup to correctly proxy backend static asset paths to the backend service.
  • Env Var Pitfall Fix: Covers the edge case where Vite loads .env.production instead of .env during dev builds, causing incorrect API endpoints in built assets.
  • Verification Steps: Includes simple curl commands to confirm assets are served correctly after fixes.
  • Use Case: For example, if your app's image lightbox works in production but shows broken images in local Vite dev, this Skill guides you through diagnosing the root cause and applying the correct fix.

Quick Start

Use the vite-static-asset-proxy-debug skill to fix the issue where your Vite dev server returns HTML instead of binary content for backend-served static asset paths.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: vite-static-asset-proxy-debug
Download link: https://github.com/freedomw1987/tree_monstor/archive/main.zip#vite-static-asset-proxy-debug

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 537,000+ vetted skills library on demand.