Hosting Scripts: A Webflow Limitation
Webflow does not allow access to the hosting server, or provide any ability to upload script libraries into your website hosting environment.
This means that for larger, complex libraries, you're forced to host those scripts elsewhere.
What we're Exploring
PHASE - Basic Setup
- The feasibility of hosting scripts elsewhere, and integrating that into a standard Webflow site.
- Using it to provide enhanced functionality.
- Overcoming HTTPS configuration limitations
- CORS & Cross-site scripting
PHASE - Advantages
- Cookie-sharing support
- Benefits or need for shadowing the server on a subdomain to allow for certain cookie-access functionality
- Bundling and delivering into the page using Webpack or other solutions
PHASE - NPM
- Ability to use 3rd party NPM modules
- NPM-based updates
- Using CJS style modules from Node.js
- Merging CJS and ESM module types via NPM
- Transpiling to /dist browser-ready code
PHASE - Usefulness
- Testing various applications
- Photo Gallery
- Chat Application
- Instagram Integration
- Plug-in Architecture
- Server-Side v. Client-Side functionality
PHASE - Bundling, Packaging, Scaling & Practicality
- Ease of developing / building / hosting in such an environment
- GTM-style script integration, site-wide
PHASE - SaaS Productization & Deployment
- Practicality of delivering this as a service to other sites
- Creating SSL certificates for js.* shadow domains
- Providing administrative access to a "shadow server instance" including
- SSH
- FTP
- Console access for configuration & compiling