From 855c737cc03782261dadba36d7ce08c11990774b Mon Sep 17 00:00:00 2001 From: Nishan Date: Fri, 10 Dec 2021 14:08:15 +0530 Subject: [PATCH 1/2] fix: add expo next plugin in storybook react --- apps/storybook-react/next.config.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/apps/storybook-react/next.config.js b/apps/storybook-react/next.config.js index 3f523487c0..ae8488d1fe 100644 --- a/apps/storybook-react/next.config.js +++ b/apps/storybook-react/next.config.js @@ -1,4 +1,9 @@ -/** @type {import('next').NextConfig} */ -module.exports = { +const { withExpo } = require('@expo/next-adapter') +const withPlugins = require('next-compose-plugins') +const withTM = require('next-transpile-modules')(['react-native-web']) + +const nextConfig = { reactStrictMode: true, } + +module.exports = withPlugins([withTM, [withExpo, { projectRoot: __dirname + '/../..' }]], nextConfig) From b464a8702cb1f0715e3b09fcf3513e49a0611f54 Mon Sep 17 00:00:00 2001 From: Axel Delafosse Date: Fri, 10 Dec 2021 10:02:18 +0100 Subject: [PATCH 2/2] remove build script for development web apps --- apps/next-react-native/package.json | 1 - apps/storybook-react/package.json | 1 - 2 files changed, 2 deletions(-) diff --git a/apps/next-react-native/package.json b/apps/next-react-native/package.json index 23bf7e835a..5bcc3a275d 100644 --- a/apps/next-react-native/package.json +++ b/apps/next-react-native/package.json @@ -4,7 +4,6 @@ "private": true, "scripts": { "dev": "NODE_OPTIONS='--inspect' next dev", - "build": "next build", "build:turbo": "cd ../.. && yarn build", "build:analyze": "ANALYZE=true yarn build", "start": "next start", diff --git a/apps/storybook-react/package.json b/apps/storybook-react/package.json index 2f0dfb9691..b39315564f 100644 --- a/apps/storybook-react/package.json +++ b/apps/storybook-react/package.json @@ -5,7 +5,6 @@ "license": "MIT", "scripts": { "dev": "next dev", - "build": "next build", "build:storybook": "build-storybook -s public", "start": "next start", "lint": "next lint",