Skip to content

Commit

Permalink
#1 - Make NextJS serverless for Vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
L committed Nov 18, 2021
1 parent b9ce021 commit 1795daa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/web-nextjs/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const withTM = require('next-transpile-modules')(['components'], {
})

module.exports = withTM({
target: 'serverless',
webpack(config) {
config.resolve.alias = {
...(config.resolve.alias || {}),
Expand Down
3 changes: 2 additions & 1 deletion packages/web-nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start"
"start": "next start",
"now-build": "next build"
},
"dependencies": {
"components": "0.0.1",
Expand Down

1 comment on commit 1795daa

@vercel
Copy link

@vercel vercel bot commented on 1795daa Nov 18, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.