This warning occurs when Stormkit is not able to find a top-level /index.html
file and server side rendering is not detected. This does not necessarily mean that your deployment failed. It just means that your endpoint's root path returns 404. Other uploaded files will still return correctly.
To view your deployment package, find your deployment from Deployments list, expand the menu and click on the Manifest button. The CDN Files section contains a list of deployed files.
If the deployed files are not the correct ones, you can change the output folder by modifying the environment configuration's Output option and re-deploy.
If you need a dynamic application you will need to enable Server Side Rendering. For Nuxt.js, we detect server side rendering automatically. For Next.js, we only support static applications. To enable server side rendering for other applications, your build must generate a .stormkit/server
folder with a file called server.js. The file must export a method called handler
like below:
// .stormkit/server/server.js
export const handler = ({ req, res }) => {
res.write('hello world')
res.end()
}
You'll probably need a bundler like Vite to bundle your application to .stormkit/server/server.js.
When server side rendering is enabled, all requests not matching a CDN file will be forwarded to serverless handler. When it is not enabled, Stormkit expects to find a file for the endpoint and returns 404 otherwise.
This error occurs when Stormkit has no access to the repository. There may be two reasons for this:
The repository URL is changed
https
URL of the repositoryCredentials are either expired or invalid
GitHub
If you're using a GitHub repository, you'll need to grant access to the Stormkit App. To do so:
GitLab
If you logged in with different providers and they are registered through different emails, Stormkit will create an account for each provider with different email. If you need to migrate your apps between accounts, reach us out from Discord or email.
If you see a "Stormkit has no access to the repo or the branch does not exist." error, it may be because Storkmit cannot checkout the branch. The branch may be deleted or never existed before. If you are sure that the branch is existing and you still receive this error, try to follow the steps described in Repository is inaccessible.