Skip to content

Commit

Permalink
refactor: copy
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Shaw committed Jan 9, 2024
1 parent 33ed4cb commit bead3e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/api/src/maintenance.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export function withMode (mode) {
if (!enabled() && !modeSkip()) {
const isAfterSunsetStart = env.NEXT_PUBLIC_W3UP_LAUNCH_SUNSET_START ? (env.NEXT_PUBLIC_W3UP_LAUNCH_SUNSET_START < new Date().toISOString()) : false
if (isAfterSunsetStart && (currentMode === READ_ONLY)) {
throw new FeatureHasBeenSunsetError('This API feature has been sunset, and will no longer be available. Use up.web3.storage, @web3-storage/w3up-client, and/or @web3-storage/w3cli instead. Find docs at https://web3.storage/docs/.')
throw new FeatureHasBeenSunsetError('This API feature has been sunset, and is no longer available. To continue uploading, use the new web3.storage API: https://web3.storage/docs.')
}
return maintenanceHandler()
}
Expand Down
3 changes: 1 addition & 2 deletions packages/website/components/w3up-launch.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ export const W3upMigrationRecommendationCopy = ({ sunsetStartDate }) => {
const sunsetDateFormatter = new Intl.DateTimeFormat(undefined, { dateStyle: 'long' });
return (
<>
This web3.storage product will sunset on {sunsetDateFormatter.format(sunsetStartDate)}. We recommend migrating
your usage of web3.storage to the new web3.storage.
This web3.storage product has sunset for new uploads. To continue uploading, migrate to the new web3.storage API.
<br />
<a href={createNewAccountHref}>Click here to create a new account</a> and&nbsp;
<a href={learnWhatsNewHref}>here to read about what’s awesome</a> about the new web3.storage experience.
Expand Down

0 comments on commit bead3e5

Please sign in to comment.