Files
snowballtools-base/packages/frontend
Vivian Phung 2b60114dab refactor: use onToast remove react-hot-toast dep (#226)
### TL;DR

Removed the dependency on `react-hot-toast` in favor of a custom implementation for toast notifications.

### What changed?

1. Removed `react-hot-toast` from `package.json` and `yarn.lock`. 
2. Updated `EnvironmentVariables` and `Config` to use the custom toast notification system.

### Why make this change?

To reduce bundle size and have more control over the toast notification system.

### How to test?

1. Navigate to the Environment Variables settings for a project. Try adding and removing environment variables to see the new toast notifications in action.
2. Navigate to the Domains settings for a project and try adding a new domain to view the custom toast notifications.

---
2024-06-24 19:25:31 -04:00
..
2024-05-09 16:18:52 -04:00
2024-05-09 16:22:03 -04:00
2024-05-09 16:22:03 -04:00
2024-04-11 21:48:58 -05:00
2024-05-09 16:22:03 -04:00
2024-04-11 21:49:14 -05:00
2024-06-24 15:00:45 -04:00
2024-05-02 15:47:23 -05:00
2024-05-16 20:16:31 -04:00
2024-05-14 13:27:23 -04:00
2024-04-11 21:48:58 -05:00
2024-06-04 15:56:52 -05:00

frontend

This is a vite react nextjs project in a yarn workspace.

Getting Started

Install dependencies

In the root of the project, run:

yarn

Build backend

yarn build --ignore frontend

Environment variables

Local

Copy the .env.example file to .env:

cp .env.example .env

Staging environment variables

Change in deployer/deploy-frontend.staging.sh

Production environment variables

Change in deployer/deploy-frontend.sh

Run development server

yarn dev

Deployment

From the root of the project, run:

Staging

cd packages/deployer && ./deploy-frontend.staging.sh

Production

cd packages/deployer && ./deploy-frontend.sh

Deployment status

Check the status of the deployment here