diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e580e4d..f48303c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -54,7 +54,7 @@ jobs: name: dist path: dist - build: + deploy_npm: name: Deploy on NPM if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/release' needs: [ build ] diff --git a/example/next.config.js b/example/next.config.js index ac4913a..3fb78bb 100644 --- a/example/next.config.js +++ b/example/next.config.js @@ -16,7 +16,6 @@ module.exports = withPlugins( rule.include = undefined; } }); - return config; }, }, diff --git a/example/pages/_app.tsx b/example/pages/_app.tsx index 47a263d..8e4b074 100644 --- a/example/pages/_app.tsx +++ b/example/pages/_app.tsx @@ -1,6 +1,6 @@ import { ApolloProvider } from '@apollo/client' import { AppProps } from 'next/app' -import { withApolloServerSideRender } from '../../src' +import { withApolloServerSideRender } from '../../dist/with-next-apollo-tree-walker' import '../styles/globals.css' import { useApollo } from '../utils/apolloClient' diff --git a/example/utils/apolloClient.ts b/example/utils/apolloClient.ts index dbed15f..b5b3efe 100644 --- a/example/utils/apolloClient.ts +++ b/example/utils/apolloClient.ts @@ -1,7 +1,7 @@ import { ApolloClient, HttpLink, InMemoryCache, NormalizedCacheObject } from '@apollo/client' import { concatPagination } from '@apollo/client/utilities' import { useMemo } from 'react' -import { useApolloCacheController } from '../../src' +import { useApolloCacheController } from '../../dist/with-next-apollo-tree-walker' let apolloClient: ApolloClient | undefined