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

feat: change output directory from "server" to "analog" #300

Merged

Conversation

goetzrobin
Copy link
Member

@goetzrobin goetzrobin commented Mar 20, 2023

made the changes so the vite-nitro-plugin.ts outputs to an "analog" folder instead of "server" folder. added an integration test for the blog-app that uses the build output from said "analog" folder. Tried to do the same for the analog-app but ran
into this issue with nx and cypress: nrwl/nx#10814.
Waiting for guidance on that before making any other e2e changes.
I think ideally we check this output as part of the e2e test
for create analog as described in issue #201.

Closes #295

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

Which package are you modifying?

  • vite-angular-plugin
  • astro-angular
  • create-analog
  • router
  • platform
  • content

What is the current behavior?

Final output that makes up the Analog server is in the server directory

Issue Number: #295

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Deploy scripts of applications using default paths need to be updated to point to the analog directory instead of server directory

Other information

@netlify
Copy link

netlify bot commented Mar 20, 2023

Deploy Preview for analog-docs ready!

Name Link
🔨 Latest commit c596311
🔍 Latest deploy log https://app.netlify.com/sites/analog-docs/deploys/641892f15c88fe0008651b6c
😎 Deploy Preview https://deploy-preview-300--analog-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Mar 20, 2023

Deploy Preview for analog-app ready!

Name Link
🔨 Latest commit c596311
🔍 Latest deploy log https://app.netlify.com/sites/analog-app/deploys/641892f16bdea70008cba83c
😎 Deploy Preview https://deploy-preview-300--analog-app.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Mar 20, 2023

Deploy Preview for analog-blog ready!

Name Link
🔨 Latest commit c596311
🔍 Latest deploy log https://app.netlify.com/sites/analog-blog/deploys/641892f18594670008dbef45
😎 Deploy Preview https://deploy-preview-300--analog-blog.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@goetzrobin
Copy link
Member Author

@brandonroberts netlify deploy is most likely failing due to the fact that the output directory was renamed. I didn't see a way to make changes to the netlify config in the repo. I assume it is some change in Github?
Let me know if there's anything I can do to address this or if you will take care of it!

Thank you!

@brandonroberts
Copy link
Member

Thank @goetzrobin! I updated the Netlify config to the new directory and restarted the deploy previews

@brandonroberts
Copy link
Member

@goetzrobin
Copy link
Member Author

@brandonroberts Good catch! Thank you! I will update that section!

still seeing some errors with the netlify deploy 🤕

12:17:02 PM: Section completed: deploying
12:17:02 PM: ​
12:17:02 PM:   Configuration error                                           
12:17:02 PM: ────────────────────────────────────────────────────────────────
12:17:02 PM: ​
12:17:02 PM:   Error message
12:17:02 PM:   Deploy did not succeed: Deploy directory 'dist/apps/blog-app/server/public' does not exist

@brandonroberts
Copy link
Member

Blog app should be resolved also https://deploy-preview-300--analog-blog.netlify.app/blog

made the changes so the vite-nitro-plugin.ts outputs to
an "analog" folder instead of "server" folder. added an integration
test for the blog-app that uses the build output from said
"analog" folder. Tried to do the same for the analog-app but ran
 into this issue with nx and cypress:
 nrwl/nx#10814.
 Waiting for guidance on that before making any other e2e changes.
 I think ideally we check this output as part of the e2e test
 for create analog as described in issue 201.

Closes analogjs#295
@goetzrobin
Copy link
Member Author

Blog app should be resolved also https://deploy-preview-300--analog-blog.netlify.app/blog

I got a 404 for that url, but that url only. Everything else works and https://deploy-preview-300--analog-blog.netlify.app also redirects correctly. I added /blog to the pre-rendered routes.

All looks good to me now 🚀

@brandonroberts brandonroberts merged commit 2267afc into analogjs:main Mar 20, 2023
Villanuevand pushed a commit to Villanuevand/analog that referenced this pull request Sep 12, 2023
Closes analogjs#295 

BREAKING CHANGES:

The output for the built client/server application has changed

BEFORE:

The output for the built server application is `dist/server/public` for client and `dist/server/server` for server

AFTER:

The output for the built server application is `dist/analog/public` for client and `dist/analog/server` for server
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.

Feature: change output directory for server build to "analog" instead of "server"
2 participants