Skip to content

Commit

Permalink
[website] fix white flash on initial loading (#1166)
Browse files Browse the repository at this point in the history
* fix white flash on initial loading

* use stable version of components
  • Loading branch information
dimaMachina authored Oct 12, 2022
1 parent 049a944 commit c9bcd24
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 810 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ jobs:
projectName: graphql-config
prId: ${{ github.event.pull_request.number }}
websiteDirectory: website
buildScript: yarn build && yarn next export
buildScript: yarn build
artifactDir: out
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ package-lock.json
.bob

website/public/_redirects
website/public/sitemap.xml
website/public/sitemap.xml
website/out/
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
"scripts": {
"prepublishOnly": "yarn build",
"clean": "rimraf dist",
"postinstall": "patch-package",
"prebuild": "yarn clean && yarn json-schema",
"build": "bob build",
"prettier": "prettier --ignore-path .gitignore --write --list-different .",
Expand Down Expand Up @@ -85,7 +84,6 @@
"lint-staged": "13.0.3",
"make-dir": "3.1.0",
"parent-module": "2.0.0",
"patch-package": "6.4.7",
"prettier": "2.7.1",
"rimraf": "3.0.2",
"ts-jest": "28.0.8",
Expand Down
3 changes: 0 additions & 3 deletions website/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { withGuildDocs } from '@theguild/components/next.config';

export default withGuildDocs({
images: {
unoptimized: true,
},
redirects: () =>
Object.entries({
'/legacy': '/docs/migration',
Expand Down
10 changes: 4 additions & 6 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,17 @@
"version": "0.0.0",
"scripts": {
"lint": "eslint --ignore-path ../.gitignore --ext js,jsx,cjs,mjs,ts,tsx,cts,mts .",
"dev": "next dev",
"next": "next",
"build": "next build && next-sitemap --config next-sitemap.config.cjs ",
"dev": "next",
"build": "next build && next-sitemap --config next-sitemap.config.cjs && next export",
"start": "next start",
"analyze": "cross-env ANALYZE=true yarn build"
},
"dependencies": {
"@theguild/components": "4.2.1",
"@theguild/components": "4.2.2",
"next": "12.3.1",
"next-sitemap": "3.1.24",
"react": "18.2.0",
"react-dom": "18.2.0",
"wrangler": "2.1.11"
"react-dom": "18.2.0"
},
"browserslist": {
"production": [
Expand Down
Loading

0 comments on commit c9bcd24

Please sign in to comment.