Deploy the Project
To deploy your Catalyst project from the CLI, run the following command in your terminal from your project directory:
This will initialize the predeploy script as with catalyst serve. The build script is executed first and the CLI executes the yarn install and yarn build commands. The packageJson script is executed next and it copies the client-package.json and pastes it in the build folder.
After the scripts are executed, the function is deployed first followed by the client component. The final access URLs of the components are displayed.
You can now open the client component’s URL in a browser to access the deployed Cat.ly application. Cat.ly can be accessed now from its web app URL.
Cat.ly displays the shortened URLs in descending order of how frequently they are accessed.
You can also access the original URL of a short ID by manually appending the shortened version of the URL (/server/catly/short ID) after the web app URL in this format:
https://catly-683477585.development.catalystserverless.com/app/server/catly/qiTWxYIJ
Since we set the homepage to “.” the shortened version of a URL will originate from Web_App_URL/app/.
Cat.ly is now functional and will work without any errors.
Last Updated 2024-03-22 17:59:45 +0530 +0530