diff --git a/netlify.toml b/netlify.toml index 1ad6614aa922..2415b0e71ba5 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,7 +1,9 @@ [build] - publish = "docs/public" - command = "cd docs && yarn && yarn build && cd .." + publish = "built-storybooks" + command = "yarn bootstrap --core && yarn build-storybooks" [build.environment] NODE_VERSION = "10" YARN_VERSION = "1.19.1" YARN_FLAGS = "--version" + DOTENV_DISPLAY_WARNING = "none" + STORYBOOK_EXAMPLE_APP ="true" diff --git a/now.json b/now.json deleted file mode 100644 index 26ca24c59d4e..000000000000 --- a/now.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "version": 2, - "name": "monorepo", - "public": true, - "builds": [ - { - "src": "package.json", - "use": "@now/static-build", - "config": { - "distDir": "built-storybooks" - } - } - ], - "build": { - "env": { - "DOTENV_DISPLAY_WARNING": "none", - "STORYBOOK_EXAMPLE_APP":"true" - } - }, - "routes": [ - { "src": "/(.*)", "dest": "/built-storybooks/$1" } - ] -} diff --git a/package.json b/package.json index 2cf6ed6e128b..3376956ba94c 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,6 @@ "lint:js": "cross-env NODE_ENV=production eslint --cache --cache-location=.cache/eslint --ext .js,.jsx,.json,.html,.ts,.tsx,.mjs --report-unused-disable-directives", "lint:md": "remark -q", "lint:package": "sort-package-json", - "now-build": "yarn bootstrap --core && yarn build-storybooks", "publish:crna": "yarn --cwd examples-native/crna-kitchen-sink expo publish", "publish:debug": "npm run publish:latest -- --npm-tag=debug --no-push", "publish:latest": "lerna publish --exact --concurrency 1 --force-publish",