-
Hi there I have a need to provide my backend code with |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 13 replies
-
Hi @gothy , You can use custom Build Command and Output Directory to add custom logic to your Build and copy source files over to the output directory. For example, if you are using Next.js, you can set your Build Command to Note that this will publish your file and your file will be exposed to your visitors. If you want to keep your file content secret, you will need to find a way to pass the content of the file instead of a file path to the firebase library you are using. |
Beta Was this translation helpful? Give feedback.
Hi @gothy ,
You can use custom Build Command and Output Directory to add custom logic to your Build and copy source files over to the output directory.
For example, if you are using Next.js, you can set your Build Command to
next build && cp my-firebase-creds.txt output/my-firebase-creds.txt
and your Output Directory tooutput
.Note that this will publish your file and your file will be exposed to your visitors.
If you want to keep your file content secret, you will need to find a way to pass the content of the file instead of a file path to the firebase library you are using.