Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.

Commit 31cd551

Browse files
authored
Merge pull request #12 from neaps/redirect
Redirect to openwaters.io
2 parents 03223a4 + e648cbb commit 31cd551

File tree

87 files changed

+57
-2703
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+57
-2703
lines changed

gatsby-config.js

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -5,38 +5,5 @@ module.exports = {
55
harmonicsServer: `https://enigmatic-sea-16360.herokuapp.com/api/v1/`,
66
harmonicsSocket: 'wss://enigmatic-sea-16360.herokuapp.com/'
77
},
8-
plugins: [
9-
{
10-
resolve: `gatsby-source-noaa-tides`,
11-
options: {
12-
stations: ['9413450', '9411340', '2695535', '8410140']
13-
}
14-
},
15-
{
16-
resolve: `gatsby-plugin-typography`,
17-
options: {
18-
pathToConfigModule: `src/style/typography`
19-
}
20-
},
21-
{
22-
resolve: `gatsby-source-filesystem`,
23-
options: {
24-
name: `tidePredictorReadme`,
25-
path: `${__dirname}/node_modules/@neaps/tide-predictor/README.md`
26-
}
27-
},
28-
{
29-
resolve: `gatsby-transformer-remark`,
30-
options: {
31-
plugins: [
32-
{
33-
resolve: `gatsby-remark-prismjs`,
34-
options: {
35-
inlineCodeMarker: null
36-
}
37-
}
38-
]
39-
}
40-
}
41-
]
8+
plugins: []
429
}

gatsby-node.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,29 @@ exports.onCreateWebpackConfig = ({ stage, loaders, actions }) => {
1414
})
1515
}
1616
}
17+
18+
exports.createPages = async ({ actions }) => {
19+
const { createRedirect } = actions
20+
21+
createRedirect({
22+
fromPath: `/docs/harmonics`,
23+
toPath: `https://openwaters.io/tides/harmonics`,
24+
isPermanent: true,
25+
redirectInBrowser: true
26+
})
27+
28+
createRedirect({
29+
fromPath: `/docs/database`,
30+
toPath: `https://openwaters.io/tides/database`,
31+
isPermanent: true,
32+
redirectInBrowser: true
33+
})
34+
35+
// Catch-all redirect for everything else
36+
createRedirect({
37+
fromPath: `/*`,
38+
toPath: `https://openwaters.io/tides/neaps`,
39+
isPermanent: true,
40+
redirectInBrowser: true
41+
})
42+
}

plugins/gatsby-source-noaa-tides/gatsby-node.js

Lines changed: 0 additions & 67 deletions
This file was deleted.

plugins/gatsby-source-noaa-tides/index.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

plugins/gatsby-source-noaa-tides/package.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)