OnePortal uses your OneDrive as a storage host, and displays the files, images, videos, songs, and documents stored inside your OneDrive for other people to preview and download.
You need a OneDrive and Cloudflare account. No payment required.
Compute (Workers) -> Workers and Pages.Create, select Pages, then choose Connect to Git. Follow the instructions to connect your forked OnePortal repository.Begin Setup, set the Framework Preset to Next.js, then click Save and Deploy.The initial deployment may fail—this is expected. Follow these steps to configure the project:
Variables and Secrets, then configure the environment variables. Please see: 🛠️ Customize Site SettingsStorage & Databases -> KV, and create a KV namespace. Take note of its name.Bindings, and add a new binding:
Variable name: OPT_KVNamespace: Select the KV namespace you just created.Runtime.Compatibility Flags and add nodejs_compat.Deployments tab.Retry Deployment.<aside> 💡
If you are redirected back to step one after completing the verification, and you confirm that everything is fine, please wait a few seconds and manually return to the homepage to refresh. Storing and retrieving credentials takes a little time.
</aside>
If you happen to like this project, please give it a star! :3
The configuration files are located at config/site.config.js and config/api.config.js. However, you don’t need to modify the code directly, as environment variables are provided for customization. Below are the environment variables you need to configure: