Browse Source

feat: update redirects for pages with new paths

feat/build-apps-rebase
Mark Hendrickson 4 years ago
committed by Thomas Osmonson
parent
commit
5d49c7f6af
  1. 128
      next.config.js
  2. 2
      src/pages/build-apps/references/bns.md

128
next.config.js

@ -10,17 +10,22 @@ async function redirects() {
return [ return [
{ {
source: '/browser/todo-list.html', source: '/browser/todo-list.html',
destination: '/authentication/building-todo-app', destination: '/build-apps/tutorials/todos',
permanent: true, permanent: true,
}, },
{ {
source: '/develop/zero_to_dapp_1.html', source: '/develop/zero_to_dapp_1.html',
destination: '/authentication/building-todo-app', destination: '/build-apps/tutorials/todos',
permanent: true, permanent: true,
}, },
{ {
source: '/browser/hello-blockstack.html', source: '/browser/hello-blockstack.html',
destination: '/authentication/building-todo-app', destination: '/build-apps/tutorials/todos',
permanent: true,
},
{
source: '/authentication/building-todo-app',
destination: '/build-apps/tutorials/todos',
permanent: true, permanent: true,
}, },
{ {
@ -39,8 +44,26 @@ async function redirects() {
permanent: true, permanent: true,
}, },
{ source: '/develop/profiles.html', destination: '/authentication/profiles', permanent: true }, { source: '/develop/profiles.html', destination: '/authentication/profiles', permanent: true },
{ source: '/storage/overview.html', destination: '/data-storage/overview', permanent: true }, {
{ source: '/develop/storage.html', destination: '/data-storage/overview', permanent: true }, source: '/storage/overview.html',
destination: '/build-apps/references/gaia',
permanent: true,
},
{
source: '/develop/storage.html',
destination: '/build-apps/references/gaia',
permanent: true,
},
{
source: '/data-storage/overview',
destination: '/build-apps/references/gaia',
permanent: true,
},
{
source: '/data-storage/overview',
destination: '/build-apps/references/gaia',
permanent: true,
},
{ {
source: '/storage/authentication.html', source: '/storage/authentication.html',
destination: '/data-storage/authentication', destination: '/data-storage/authentication',
@ -76,6 +99,11 @@ async function redirects() {
destination: '/data-storage/indexing-server-extras', destination: '/data-storage/indexing-server-extras',
permanent: true, permanent: true,
}, },
{
source: '/authentication/building-with-angular',
destination: '/build-apps/tutorials/angular',
permanent: true,
},
{ {
source: '/core/smart/overview.html', source: '/core/smart/overview.html',
destination: '/write-smart-contracts/overview', destination: '/write-smart-contracts/overview',
@ -193,12 +221,22 @@ async function redirects() {
}, },
{ {
source: '/develop/collections.html', source: '/develop/collections.html',
destination: '/data-storage/collections', destination: '/build-apps/collections/overview',
permanent: true,
},
{
source: '/data-storage/collections',
destination: '/build-apps/collections/overview',
permanent: true, permanent: true,
}, },
{ {
source: '/develop/collection-type.html', source: '/develop/collection-type.html',
destination: '/data-storage/collections-type', destination: '/build-apps/collections/types',
permanent: true,
},
{
source: '/data-storage/collections-type',
destination: '/build-apps/collections/types',
permanent: true, permanent: true,
}, },
{ {
@ -396,7 +434,17 @@ async function redirects() {
}, },
{ {
source: '/develop/overview_auth.html', source: '/develop/overview_auth.html',
destination: '/authentication/overview', destination: '/build-apps/guides/authentication',
permanent: true,
},
{
source: '/authentication/overview',
destination: '/build-apps/guides/authentication',
permanent: true,
},
{
source: '/build-apps',
destination: '/build-apps/overview',
permanent: true, permanent: true,
}, },
{ source: '/org/terms.html', destination: '/references/glossary', permanent: true }, { source: '/org/terms.html', destination: '/references/glossary', permanent: true },
@ -413,8 +461,18 @@ async function redirects() {
destination: '/write-smart-contracts/overview', destination: '/write-smart-contracts/overview',
permanent: true, permanent: true,
}, },
{ source: '/data-storage', destination: '/data-storage/overview', permanent: true }, { source: '/data-storage', destination: '/build-apps/references/gaia', permanent: true },
{ source: '/data-indexing', destination: '/data-storage/indexing-overview', permanent: true }, {
source: '/data-storage/overview',
destination: '/build-apps/references/gaia',
permanent: true,
},
{ source: '/data-indexing', destination: '/build-apps/indexing/overview', permanent: true },
{
source: '/data-storage/indexing-overview',
destination: '/build-apps/indexing/overview',
permanent: true,
},
{ source: '/stacks-wallet', destination: '/stacks-wallet/overview', permanent: true }, { source: '/stacks-wallet', destination: '/stacks-wallet/overview', permanent: true },
{ source: '/naming-services', destination: '/build-apps/references/bns', permanent: true }, { source: '/naming-services', destination: '/build-apps/references/bns', permanent: true },
{ source: '/naming-system', destination: '/build-apps/references/bns', permanent: true }, { source: '/naming-system', destination: '/build-apps/references/bns', permanent: true },
@ -469,42 +527,57 @@ async function redirects() {
// data indexing changes // data indexing changes
{ {
source: '/data-indexing/overview', source: '/data-indexing/overview',
destination: '/data-storage/indexing-overview', destination: '/build-apps/indexing/overview',
permanent: true,
},
{
source: '/data-storage/indexing-overview',
destination: '/build-apps/indexing/overview',
permanent: true, permanent: true,
}, },
{ {
source: '/data-indexing/integrate', source: '/data-indexing/integrate',
destination: '/data-storage/integrate-indexing', destination: '/build-apps/tutorials/indexing',
permanent: true,
},
{
source: '/data-storage/integrate-indexing',
destination: '/build-apps/tutorials/indexing',
permanent: true, permanent: true,
}, },
{ {
source: '/data-indexing/models', source: '/data-indexing/models',
destination: '/data-storage/indexing-models', destination: '/build-apps/indexing/models',
permanent: true, permanent: true,
}, },
{ {
source: '/data-indexing/collaborate', source: '/data-indexing/collaborate',
destination: '/data-storage/indexing-collaborate', destination: '/build-apps/indexing/collaboration',
permanent: true, permanent: true,
}, },
{ {
source: '/data-indexing/server-extras', source: '/data-indexing/server-extras',
destination: '/data-storage/indexing-server-extras', destination: '/build-apps/indexing/server',
permanent: true, permanent: true,
}, },
{ {
source: '/storage-hubs/hello-hub-choice', source: '/data-storage/indexing-models',
destination: '/storage-hubs/overview', destination: '/build-apps/indexing/models',
permanent: true, permanent: true,
}, },
{ {
source: '/naming-services/build-profile-search-index', source: '/data-storage/indexing-collaborate',
destination: '/build-apps/references/bns', destination: '/build-apps/indexing/collaboration',
permanent: true, permanent: true,
}, },
{ {
source: '/naming-services/build-profile-search-index', source: '/data-storage/indexing-server-extras',
destination: '/build-apps/references/bns', destination: '/build-apps/indexing/server',
permanent: true,
},
{
source: '/storage-hubs/hello-hub-choice',
destination: '/storage-hubs/overview',
permanent: true, permanent: true,
}, },
{ {
@ -513,11 +586,10 @@ async function redirects() {
permanent: true, permanent: true,
}, },
{ {
source: '/naming-services/build-profile-search-index', source: '/technology/naming-system',
destination: '/build-apps/references/bns', destination: '/build-apps/references/bns',
permanent: true, permanent: true,
}, },
{ {
source: '/naming-services/architecture', source: '/naming-services/architecture',
destination: '/build-apps/references/bns', destination: '/build-apps/references/bns',
@ -638,6 +710,11 @@ async function redirects() {
destination: '/build-apps/transaction-signing', destination: '/build-apps/transaction-signing',
permanent: true, permanent: true,
}, },
{
source: '/write-smart-contracts/signing-transactions',
destination: '/build-apps/transaction-signing',
permanent: true,
},
{ {
source: '/smart-contracts/principals', source: '/smart-contracts/principals',
destination: '/write-smart-contracts/principals', destination: '/write-smart-contracts/principals',
@ -753,6 +830,11 @@ async function redirects() {
destination: '/build-apps/tutorial/public-registry', destination: '/build-apps/tutorial/public-registry',
permanent: true, permanent: true,
}, },
{
source: '/write-smart-contracts/public-registry-tutorial',
destination: '/build-apps/tutorial/public-registry',
permanent: true,
},
{ {
source: '/stacks-blockchain/stacks-1.0-info', source: '/stacks-blockchain/stacks-1.0-info',
destination: '/understand-stacks/stacks-1.0-info', destination: '/understand-stacks/stacks-1.0-info',

2
src/pages/build-apps/references/bns.md

@ -319,7 +319,7 @@ it.
Because subdomain names are cheap, developers may be inclined to run Because subdomain names are cheap, developers may be inclined to run
subdomain registrars on behalf of their applications. For example, subdomain registrars on behalf of their applications. For example,
the name `personal.id` is used to register Blockstack application users without the name `personal.id` is used to register usernames without
requiring them to spend any Bitcoin. requiring them to spend any Bitcoin.
We supply a reference implementation of a [BNS Subdomain We supply a reference implementation of a [BNS Subdomain

Loading…
Cancel
Save