Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[now-next] Upload build-time generated static artifacts #3096

Merged
merged 5 commits into from
Oct 1, 2019

Conversation

lfades
Copy link
Member

@lfades lfades commented Sep 27, 2019

For context, when you have a script that generates a new static file at build time (sitemap.xml for example), it has to be inside .next/static, and then you'll need a Now route for it, with this change you could generate the file inside public/static and the builder will now take care of it.

The util includeOnlyEntryDirectory is no longer being used after this change, should I remove it?

@lfades lfades requested a review from Timer as a code owner September 27, 2019 22:19
@codecov-io
Copy link

codecov-io commented Sep 28, 2019

Codecov Report

Merging #3096 into canary will increase coverage by 1.96%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           canary   #3096      +/-   ##
=========================================
+ Coverage   11.33%   13.3%   +1.96%     
=========================================
  Files         268     268              
  Lines       10064   10330     +266     
  Branches     1314    1217      -97     
=========================================
+ Hits         1141    1374     +233     
- Misses       8830    8893      +63     
+ Partials       93      63      -30
Impacted Files Coverage Δ
src/util/metrics.ts 68.18% <0%> (-2.41%) ⬇️
src/commands/deploy/latest.js 0% <0%> (ø) ⬆️
src/util/handle-error.ts 38.88% <0%> (ø) ⬆️
src/commands/deploy/legacy.ts 0% <0%> (ø) ⬆️
src/commands/projects.js 0% <0%> (ø) ⬆️
src/util/deploy/process-deployment.ts 0% <0%> (ø) ⬆️
src/util/deploy/create-deploy.js 0% <0%> (ø) ⬆️
src/util/errors-ts.ts 47.48% <0%> (+0.02%) ⬆️
src/util/dev/server.ts 63.85% <0%> (+2.83%) ⬆️
src/util/dev/builder-cache.ts 80.74% <0%> (+3.47%) ⬆️
... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bdd4441...60e989e. Read the comment docs.

@Timer Timer added @now/next triaged: feature request Issue or PR has been reviewed by a maintainer and work is being tracked labels Sep 30, 2019
@Timer Timer changed the title let the public and static folder catch new files [now-next] Upload build-time generated static artifacts Sep 30, 2019
@Timer Timer removed the triaged: feature request Issue or PR has been reviewed by a maintainer and work is being tracked label Sep 30, 2019
@kodiakhq kodiakhq bot merged commit 32134dd into vercel:canary Oct 1, 2019
styfle pushed a commit that referenced this pull request Oct 3, 2019
For context, when you have a script that generates a new static file at build time (`sitemap.xml` for example), it has to be inside `.next/static`, and then you'll need a Now route for it, with this change you could generate the file inside `public`/`static` and the builder will now take care of it.

The util `includeOnlyEntryDirectory` is no longer being used after this change, should I remove it?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants