Skip to content

Commit

Permalink
feat: ssg output for admin client (#709)
Browse files Browse the repository at this point in the history
Signed-off-by: hxtree <[email protected]>
  • Loading branch information
hxtree authored Nov 16, 2023
1 parent e077e4e commit 022ed0e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 63 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ dist/**
!dist/README.md

# next.js build output
.next
.next/
out/

# storybook build
**/storybook-static/**
Expand Down
20 changes: 18 additions & 2 deletions services/admin-client/next.config.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
/** @type {import('next').NextConfig} */
module.exports = {};
/**
* @type {import('next').NextConfig}
* https://nextjs.org/docs/pages/building-your-application/deploying/static-exports
*/
const nextConfig = {
output: 'export',

// Optional: Change links `/me` -> `/me/` and emit `/me.html` -> `/me/index.html`
// trailingSlash: true,

// Optional: Prevent automatic `/me` -> `/me/`, instead preserve `href`
// skipTrailingSlashRedirect: true,

// Optional: Change the output directory `out` -> `dist`
// distDir: 'dist',
};

module.exports = nextConfig;
60 changes: 0 additions & 60 deletions services/admin-client/pages/weather.tsx

This file was deleted.

0 comments on commit 022ed0e

Please sign in to comment.