Skip to content

Commit 98acc0b

Browse files
committed
Add netlify config file
1 parent a18c6c2 commit 98acc0b

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

packages/cra-template/template/gitignore

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@
99
/coverage
1010

1111
# production
12-
# /build
13-
# Changed from /build to /dist because this is default for
14-
# Netlify when deploying an app using `@upleveled/react-scripts`
15-
# Ref: https://github.com/upleveled/create-react-app/commit/ab165a178994751e837d2835b2a4dbcc48f6f709#
16-
/dist
12+
/build
1713

1814
# misc
1915
.DS_Store
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build]
2+
publish = "build"
3+
command = "pnpm run build"

packages/react-scripts/config/paths.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,7 @@ const publicUrlOrPath = getPublicUrlOrPath(
2929
process.env.PUBLIC_URL,
3030
);
3131

32-
const buildPath =
33-
process.env.BUILD_PATH ||
34-
// Default for Netlify when deploying an app using `@upleveled/react-scripts`
35-
'dist';
32+
const buildPath = process.env.BUILD_PATH || 'build';
3633

3734
const moduleFileExtensions = [
3835
'web.mjs',

0 commit comments

Comments
 (0)