-
Notifications
You must be signed in to change notification settings - Fork 34
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: deploy to s3 #411
base: main
Are you sure you want to change the base?
feat: deploy to s3 #411
Conversation
RaoHai
commented
Sep 24, 2024
- 纯静态部署
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
WalkthroughThis pull request introduces the deployment configuration for deploying static content to S3. It includes changes to the GitHub Actions workflow and updates to the Next.js configuration to support static export. Changes
|
- .github/workflows/aws-static.yml | ||
- client/** | ||
- assistant/** | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure that the AWS credentials used here are securely stored and not hard-coded. Consider using GitHub Secrets for sensitive information.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
展开说说
@@ -6,7 +6,7 @@ const { withSentryConfig } = require("@sentry/nextjs"); | |||
|
|||
|
|||
const nextConfig = { | |||
...process.env.NEXT_STANDALONE ? { output: "standalone" } :{}, | |||
...process.env.NEXT_STANDALONE ? { output: "export", ssr: false } :{}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Setting ssr: false
might have unintended side effects if your application relies on server-side rendering. Ensure this change is thoroughly tested.
Codecov ReportAll modified and coverable lines are covered by tests ✅ |
4050578
to
90604e8
Compare
90604e8
to
3a01c03
Compare