This is the repository for the ClovaLink website, a secure file sharing platform for businesses.
The main application code is located in the clovalink directory. This is a Next.js application that is built as a static site for deployment on Cloudflare Pages.
To run the development server:
cd clovalink
npm install
npm run devThe site is deployed on Cloudflare Pages. The deployment process is as follows:
- The build script in the root
package.jsonruns the build process in theclovalinkdirectory - After the build completes, the
deploy.jsscript copies the build output fromclovalink/outto the rootoutdirectory - Cloudflare Pages then deploys the contents of the root
outdirectory
wrangler.toml: Configuration for Cloudflare Pages.node-versionand.nvmrc: Specify the Node.js version for the projectpackage.json: Contains the build script for deploymentdeploy.js: Helper script to copy the build output to the root directory
If you encounter issues with the deployment, check the following:
- Make sure the Node.js version is set correctly in
.node-versionand.nvmrc - Verify that the build script in
package.jsonis correct - Check that the
wrangler.tomlfile has the correct configuration - Ensure that the
deploy.jsscript is working correctly