Comments (2)
I have always kept my static files in /src/client/public
for development (Next.js way) and when it's time to publish/deploy I copy everything in my /src/client/public
to %project_root%/public
.
You could also write a pre-deploy npm script that does this automatically.
from firebase-gcp-examples.
Hi all, this is solved in my new example https://github.com/jthegedus/firebase-gcp-examples/tree/master/functions-nextjs
Please take a look as it is more simplified in structure, but also a better example of the multiple Next.js features now available
from firebase-gcp-examples.
Related Issues (20)
- Different cacheing behaviour then the expected from getStaticProps function HOT 17
- Question: Is it good to have one single function when deploying serverless? HOT 5
- Using react-modal in custom _app.js in prod build results in server crash when deployed to Firebase HOT 6
- deployment error
- "Preview mode" not working when deployed with Firebase hosting HOT 8
- Incremental Static Regeneration HOT 2
- next rebuilding the project on each request (in emulator) HOT 2
- Some functions-nextjs questions HOT 2
- add updated GraphQL server example HOT 1
- add updated Express.js example HOT 1
- add Function Group example
- add new Functions emulator to examples
- update Next.js example HOT 20
- add contributors HOT 11
- add Nuxt.js example
- TypeError: _onRequestWithOpts is not a function HOT 3
- Error in deploy HOT 30
- "Not Working" on folder/files HOT 4
- getInitialProps ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firebase-gcp-examples.