Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 1 addition & 34 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,38 +5,5 @@ module.exports = {
harmonicsServer: `https://enigmatic-sea-16360.herokuapp.com/api/v1/`,
harmonicsSocket: 'wss://enigmatic-sea-16360.herokuapp.com/'
},
plugins: [
{
resolve: `gatsby-source-noaa-tides`,
options: {
stations: ['9413450', '9411340', '2695535', '8410140']
}
},
{
resolve: `gatsby-plugin-typography`,
options: {
pathToConfigModule: `src/style/typography`
}
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `tidePredictorReadme`,
path: `${__dirname}/node_modules/@neaps/tide-predictor/README.md`
}
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-prismjs`,
options: {
inlineCodeMarker: null
}
}
]
}
}
]
plugins: []
}
26 changes: 26 additions & 0 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,29 @@ exports.onCreateWebpackConfig = ({ stage, loaders, actions }) => {
})
}
}

exports.createPages = async ({ actions }) => {
const { createRedirect } = actions

createRedirect({
fromPath: `/docs/harmonics`,
toPath: `https://openwaters.io/tides/harmonics`,
isPermanent: true,
redirectInBrowser: true
})

createRedirect({
fromPath: `/docs/database`,
toPath: `https://openwaters.io/tides/database`,
isPermanent: true,
redirectInBrowser: true
})

// Catch-all redirect for everything else
createRedirect({
fromPath: `/*`,
toPath: `https://openwaters.io/tides/neaps`,
isPermanent: true,
redirectInBrowser: true
})
}
67 changes: 0 additions & 67 deletions plugins/gatsby-source-noaa-tides/gatsby-node.js

This file was deleted.

1 change: 0 additions & 1 deletion plugins/gatsby-source-noaa-tides/index.js

This file was deleted.

10 changes: 0 additions & 10 deletions plugins/gatsby-source-noaa-tides/package.json

This file was deleted.

Loading