Guide
Where Do I Put My Files?
A short guide to storing Webflow extra files, from pasting small snippets into Webflow to a GitHub repo or your own web hosting.
On this page
If you build sites in Webflow, you will hit this question sooner or later: where do my files go? Where those files belong depends on how large the project is.
Webflow is strong at pages, design and content. Two other jobs keep coming up, and they are easy to mix together.
First, you want to extend what Webflow can do with your own code. A slider the native components cannot cover, a form helper, extra CSS. That is a code question. Stagepass is built for this part: you write the code locally, compile it with Stagepass, then preview it on the live site in your own browser session. That has nothing to do, by itself, with where the files live in production.
Second, you need somewhere to store files that are larger than Webflow allows, or that do not belong in the Designer at all. Videos you embed with an HTML video tag. Brochures, flyers, ZIP archives and other extras that have to stay downloadable, and that someone will want to swap out later. Those files need a public home, under a URL you control.
Very small projects
If the extra code is short, you may not need a separate host at all.
Develop locally, in the editor you already like. When the result is ready, paste the finished JavaScript and CSS into Webflow: Project Settings, Custom Code, or an Embed on the page. Visitors then get the code straight from Webflow. There is no extra URL to manage.
This stays comfortable while the code is small and you do not mind publishing in Webflow when you update it. Once the snippets grow, or you want Git history and a Stagepass project, it is time for the next option.
Mid-size projects (CSS and JavaScript only)
When you have real CSS and JavaScript files, but no server-side code and no large media library, a GitHub repository is often enough.
Keep the source private. Publish only the built files. A straightforward way to do that is a git-to-git workflow: the private repository holds your source, and a second, public repository receives only the compiled CSS and JavaScript. Webflow then loads those public files by URL.
How you wire that up is a topic for a later article.
Larger projects (PHP, video, downloads)
Some projects outgrow a public folder of CSS and JS.
You might need PHP. You might need to host videos that are larger than Webflow allows, then embed them with a video tag. You might need brochures, flyers or ZIP files that the client will replace next month, under a URL that should stay the same.
If your project needs PHP
A git-to-git setup does not help either: GitHub and similar services only hand out files, they never execute them. So as soon as a project needs logic on a server, such as a form backend or an API call with a secret key, you need your own web host that can run PHP, version 8.2 or newer for the Stagepass starter.
Webflow Custom Code, Done Properly shows how to build that small PHP backend with Stagepass and put it on your host.
That is when you want your own storage, or a proper web hosting account. You upload the file, you choose the path, you replace it later without touching the rest of the site. The URL is yours.
A public URL has to return the file itself, not a login page or an HTML preview. If you open the link and you get the video, the PDF or the ZIP, you are in good shape.
Where Stagepass fits
What Stagepass does is the code side, no matter where the production files end up. You work locally in TypeScript or JavaScript, and in SCSS or CSS. stagepass build compiles those files. For live development, stagepass watch rebuilds when you change your code.
Reload the live URL with your session to see the result. During that session, Stagepass can swap the tagged scripts and stylesheets on the live site for your local files. Everyone else keeps seeing the hosted production files.
Those files still need a real home, as outlined above.
Very small
For a very small project you can write the code locally, in a normal editor or in a Stagepass project, and then paste the compiled result into Webflow. The separate hosting question simply does not come up yet.
Mid-size or large
For a mid-size or large project, the production URL on each tagged file is whatever public address you chose for the built JS and CSS.
If you are bringing an existing custom-code project over, start with Move an Existing Project to Stagepass. For the loader, tags and first session, see Getting started.
What comes next
This guide is meant to give you the right starting point, not a full setup for every option. Deeper articles on pasting into Webflow, on a git-to-git setup and on running your own host may follow. Until then, pick the smallest option that fits the project you have today.
Frequently asked questions
Where should I host custom code for a Webflow site?
It depends on the size of the project. Paste very small snippets straight into Webflow. For CSS and JavaScript only, a GitHub repository is often enough. For PHP, large videos or downloads, use your own web hosting.
Can I host JavaScript and CSS for Webflow on GitHub?
Yes. Keep the source in a private repository and publish only the built files to a second, public one. Webflow then loads those public files by URL.
Where do I host PHP for a Webflow site?
On your own web host that can run PHP, version 8.2 or newer for the Stagepass starter. Webflow can't run PHP, and GitHub only hands out files, it never executes them. See Webflow Custom Code, Done Properly.
Where do I host videos and downloads for Webflow?
On your own storage or web hosting, under a URL you control. The public URL has to return the file itself, not a login page or an HTML preview.
Does Stagepass host my files?
No. Stagepass handles the code side and swaps your compiled JS and CSS for local files during your own session. It doesn't swap videos, PDFs or ZIPs, and it doesn't replace a GitHub repo or a web host. See Getting started.