Skip to content

Commit 8b8616b

Browse files
committed
create genezio.yaml
1 parent 05881ef commit 8b8616b

File tree

4 files changed

+31
-2
lines changed

4 files changed

+31
-2
lines changed

.env

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
GENERATE_SOURCEMAP=false

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ This free MUI & React Dashboard is coming with prebuilt design blocks, so the de
1313
switching from our pages to the real website is very easy to be done.
1414

1515
Special thanks go to:
16+
1617
- [Nepcha Analytics](https://nepcha.com?ref=readme) for the analytics tool. Nepcha is already integrated with Material Dashboard React. You can use it to gain insights into your sources of traffic.
1718

1819
**Documentation built by Developers**
@@ -47,6 +48,7 @@ Let us know your thoughts below. And good luck with development!
4748
- [Versions](#versions)
4849
- [Demo](#demo)
4950
- [Quick Start](#quick-start)
51+
- [Deploy](#deploy)
5052
- [Documentation](#documentation)
5153
- [File Structure](#file-structure)
5254
- [Browser Support](#browser-support)
@@ -86,6 +88,12 @@ Quick start options:
8688
1. Download and Install NodeJs LTS version from [NodeJs Official Page](https://nodejs.org/en/download/).
8789
2. Navigate to the root ./ directory of the product and run `yarn install` or `npm install` to install our local dependencies.
8890

91+
## Deploy
92+
93+
:rocket: You can deploy your own version of the template to Genezio with one click:
94+
95+
[![Deploy to Genezio](https://raw.githubusercontent.com/Genez-io/graphics/main/svg/deploy-button.svg)](https://app.genez.io/start/deploy?repository=https://github.com/creativetimofficial/material-dashboard-react&utm_source=github&utm_medium=referral&utm_campaign=github-creativetim&utm_term=deploy-project&utm_content=button-head)
96+
8997
## Documentation
9098

9199
The documentation for the Material Dashboard is hosted at our [website](https://www.creative-tim.com/learning-lab/react/overview/material-dashboard/?ref=readme-mdr).

genezio.yaml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# The name of the project.
2+
name: material-dashboard-react
3+
# The region where the project is deployed.
4+
region: us-east-1
5+
# The version of the Genezio YAML configuration to parse.
6+
yamlVersion: 2
7+
# Information about the frontend, including the path, language, and publish directory.
8+
# It is optional. It can also be an array if there are multiple frontends you want to deploy.
9+
frontend:
10+
# The folder where the frontend scripts will run.
11+
path: ./
12+
# The directory that will be published to the CDN. It is relative to the path.
13+
publish: ./build
14+
scripts:
15+
# List of scripts that build your frontend before deployment. It should populate the specified `publish` directory.
16+
build: npm run build
17+
# List of scripts to run before deploying the frontend.
18+
deploy: npm install
19+
subdomain: coral-curly-mockingbird

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
"yup": "1.1.1"
3434
},
3535
"scripts": {
36-
"start": "GENERATE_SOURCEMAP=false react-scripts start",
37-
"build": "GENERATE_SOURCEMAP=false react-scripts build",
36+
"start": "react-scripts start",
37+
"build": "react-scripts build",
3838
"test": "react-scripts test",
3939
"eject": "react-scripts eject",
4040
"install:clean": "rm -rf node_modules/ && rm -rf package-lock.json && npm install && npm start"
@@ -58,6 +58,7 @@
5858
]
5959
},
6060
"devDependencies": {
61+
"ajv": "^7.2.4",
6162
"eslint": "8.39.0",
6263
"eslint-config-prettier": "8.8.0",
6364
"eslint-plugin-import": "2.27.5",

0 commit comments

Comments
 (0)