Skip to content

Web frameworks - Next.js - Functions deployment is huge due to .next/cache #6715

@paramaggarwal

Description

@paramaggarwal

Environment info

firebase-tools: 13.1.0

Platform: macOS

Test case

Create a new next.js project and then attempt to deploy it to Firebase, the functions folder will be huge like 100MB or upto 300MB.

Steps to reproduce

Create a new next.js project and then attempt to deploy it to Firebase, the functions folder will be huge like 100MB or upto 300MB.

Expected behavior

The .next/cache folder should be ignored by Firebase Functions.

Actual behavior

The .next/cache folder is being copied over to .firebase/app-name/functions/.next/cache

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions