Skip to content

Commit 2a6a249

Browse files
refactor: change bundler to vite and fix snyk and audit issues
1 parent bb79995 commit 2a6a249

File tree

11 files changed

+5406
-18993
lines changed

11 files changed

+5406
-18993
lines changed

.env.sample

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
REACT_APP_CONTENTSTACK_API_KEY=YOUR_STACK_API_KEY
2-
REACT_APP_CONTENTSTACK_DELIVERY_TOKEN=YOUR_DELIVERY_TOKEN
3-
REACT_APP_CONTENTSTACK_ENVIRONMENT=YOUR_ENVIRONMENT
1+
VITE_CONTENTSTACK_API_KEY=YOUR_STACK_API_KEY
2+
VITE_CONTENTSTACK_DELIVERY_TOKEN=YOUR_DELIVERY_TOKEN
3+
VITE_CONTENTSTACK_ENVIRONMENT=YOUR_ENVIRONMENT
44

55
# Supported Regions:
66
# For AWS North America, set region as US
77
# For AWS Europe, set region as EU
88
# For Azure North America, set region as AZURE_NA
99
# For Azure Europe, set the region as AZURE_EU
1010
# For GCP, set the region as GCP_NA
11-
REACT_APP_CONTENTSTACK_REGION=YOUR_STACK_REGION
11+
VITE_CONTENTSTACK_REGION=YOUR_STACK_REGION

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ This is a React starter app that integrates with Contentstack's Content Delivery
2727
4. Rename `.env.sample` as `.env` file in the root directory and add your Contentstack API keys:
2828

2929
```
30-
REACT_APP_CONTENTSTACK_API_KEY=YOUR_STACK_API_KEY
31-
REACT_APP_CONTENTSTACK_DELIVERY_TOKEN=YOUR_DELIVERY_TOKEN
32-
REACT_APP_CONTENTSTACK_ENVIRONMENT=YOUR_ENVIRONMENT
33-
REACT_APP_CONTENTSTACK_REGION=YOUR_STACK_REGION
30+
VITE_CONTENTSTACK_API_KEY=YOUR_STACK_API_KEY
31+
VITE_CONTENTSTACK_DELIVERY_TOKEN=YOUR_DELIVERY_TOKEN
32+
VITE_CONTENTSTACK_ENVIRONMENT=YOUR_ENVIRONMENT
33+
VITE_CONTENTSTACK_REGION=YOUR_STACK_REGION
3434
```
3535

3636
5. Run the development server:
3737
```
38-
npm start
38+
npm run dev
3939
```
4040

4141
## Configuration

index.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<link rel="icon" href="/favicon.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1" />
7+
<meta name="theme-color" content="#000000" />
8+
<meta name="description" content="PlateStack" />
9+
<link rel="apple-touch-icon" href="/Logomark.svg" />
10+
<link rel="manifest" href="/manifest.json" />
11+
<link rel="preconnect" href="https://fonts.googleapis.com" />
12+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
13+
<link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&display=swap" rel="stylesheet" />
14+
<title>PlateStack</title>
15+
</head>
16+
<body>
17+
<noscript>You need to enable JavaScript to run this app.</noscript>
18+
<div id="root"></div>
19+
<script type="module" src="/src/index.tsx"></script>
20+
</body>
21+
</html>
22+

0 commit comments

Comments
 (0)