Skip to content

Commit

Permalink
Merge pull request #18 from AAStarCommunity/render_dev
Browse files Browse the repository at this point in the history
Render dev
  • Loading branch information
cherry-yl-sh authored Jun 28, 2024
2 parents 52e581d + 67d2f16 commit 6cb860b
Show file tree
Hide file tree
Showing 3 changed files with 704 additions and 501 deletions.
27 changes: 5 additions & 22 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,6 @@
module.exports = {
webpack(config) {
config.module.rules.push({
test: /\.svg$/i,
issuer: /\.[jt]sx?$/,
use: ["@svgr/webpack"],
});

return config;
},
// async rewrites() {
// return [
// {
// source: "/",
// destination: "/home",
// },
// {
// source: "/admin",
// destination: "/admin/index.html",
// },
// ];
// },
};
output : 'export',
images :{
unoptimized: true,
}
};
21 changes: 21 additions & 0 deletions render.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# services:
# - type: web
# name: next-js
# runtime: node
# plan: starter
# buildCommand: yarn; yarn build
# startCommand: yarn start
# autoDeploy: false
# envVars:
# - key: NODE_ENV
# value: production
# Uncomment the following to deploy this app as a static site on render
- type: web
name: nextjs-static
runtime: static
buildCommand: yarn; yarn build
staticPublishPath: out
pullRequestPreviewsEnabled: true # optional
envVars:
- key: NODE_ENV
value: production
Loading

0 comments on commit 6cb860b

Please sign in to comment.