- Overview
- Routing
- Proxy Routes
- React
- Quick Start
- Fetching Data from API
- fetch() API
- Populating Page's Head
- Importing CSS/Sass
- TypeScript
- Excluding Bundle from Client-Side
- Markdown and MDX
- Node.js / JavaScript
- Query Parameters
- POST, PUT, PATCH, DELETE Methods
- Dynamic Routes (Pretty URL Slugs)
- fetch() API
- TypeScript
- Sessions
- CORS and Express Middlewares
- HTML
- Vue
- Svelte
- Static Files
- Python
- Before You Start
- Printing To Console
- JSON Response
- URL Parameters
- Requirements.txt
- Dynamic Routes (Pretty URL Slugs)
- POST Data
- File Upload
- Deployment
- Security
- How Zero Works
Static Files
Zero transpiles and bundles all the code files (.js
, .html
, .jsx
, .md
, etc). But otherwise it just serves the file as-is.
Your static files (images, documents, etc) can reside alongside your code files. It won't affect your code.
Example
If you project is structured like this:
- project/- index.jsx- style.css- logo.png
If you visit http://localhost:3000/
it will render your React page. The logo file is accessible at http://localhost:3000/logo.png
as you would expect.