diff --git a/.github/workflows/ghpages.yml b/.github/workflows/ghpages.yml
index f884225..7411185 100644
--- a/.github/workflows/ghpages.yml
+++ b/.github/workflows/ghpages.yml
@@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-18.04
strategy:
matrix:
- node: ["12.16.0"]
+ node: ['12.16.0']
name: Node ${{ matrix.node }}
steps:
- uses: actions/checkout@v2
@@ -37,4 +37,3 @@ jobs:
with:
github_token: ${{ secrets.BLOBS_APP_PUBLISH_TOKEN }}
publish_dir: ./public
- cname: blobs.app
diff --git a/README.md b/README.md
index 6553b8b..8de38b3 100644
--- a/README.md
+++ b/README.md
@@ -14,28 +14,27 @@

-
-
### Features
- - Choose any solid colors
- - Set gradient colors
- - Use Patterns
- - Clip Image
- - Outlined blob
- - SVG Code - view/copy/download
- - Flutter blob code
- - Save and view blobs
- - Tiny blob change sound
- - PWA - Offline support
- - Custom sharable URL
- - Dark theme
+
+- Choose any solid colors
+- Set gradient colors
+- Use Patterns
+- Clip Image
+- Outlined blob
+- SVG Code - view/copy/download
+- Flutter blob code
+- Save and view blobs
+- Tiny blob change sound
+- PWA - Offline support
+- Custom sharable URL
+- Dark theme
### Development
diff --git a/gatsby-config.js b/gatsby-config.js
index 38d9db5..621a03c 100644
--- a/gatsby-config.js
+++ b/gatsby-config.js
@@ -1,6 +1,7 @@
module.exports = {
+ pathPrefix: '/blobs.app/',
siteMetadata: {
- siteUrl: 'https://blobs.app',
+ siteUrl: 'https://lokesh-coder.github.io/blobs.app',
name: 'blobs.app',
description: 'Generate beautiful blob shapesfor web and flutter apps',
descriptionLong:
diff --git a/package.json b/package.json
index b0e64b0..7ff9ffa 100644
--- a/package.json
+++ b/package.json
@@ -59,7 +59,7 @@
],
"license": "MIT",
"scripts": {
- "build": "gatsby build",
+ "build": "gatsby build --prefix-paths",
"develop": "gatsby develop -H 0.0.0.0",
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md}\"",
"start": "npm run develop",
diff --git a/src/components/NavLinks.js b/src/components/NavLinks.js
index d7f1010..2a260a9 100644
--- a/src/components/NavLinks.js
+++ b/src/components/NavLinks.js
@@ -63,7 +63,7 @@ const NavLinks = ({ saveBlob }) => {
diff --git a/src/utils/storage.utils.js b/src/utils/storage.utils.js
index 72189f0..d766525 100644
--- a/src/utils/storage.utils.js
+++ b/src/utils/storage.utils.js
@@ -35,7 +35,7 @@ export const saveBlob = (store) => {
id: Date.now(),
name: generateName({ words: 2 }).spaced,
// eslint-disable-next-line no-restricted-globals
- url: `/${location.search}`,
+ url: location.href,
};
const allBlobs = getAllBlobs();
const blobs = [...(allBlobs || []), newData];