From 134c2580c901c54a3e5a774c53fe6cd5dbe96a2f Mon Sep 17 00:00:00 2001 From: advplyr Date: Sun, 30 Jun 2024 16:46:54 -0500 Subject: [PATCH] Update:Custom error page for nuxt --- client/layouts/error.vue | 45 ++++++++++++++++++++++++++++++++++++ client/pages/share/_slug.vue | 2 +- 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 client/layouts/error.vue diff --git a/client/layouts/error.vue b/client/layouts/error.vue new file mode 100644 index 00000000..513b51aa --- /dev/null +++ b/client/layouts/error.vue @@ -0,0 +1,45 @@ + + + diff --git a/client/pages/share/_slug.vue b/client/pages/share/_slug.vue index 14d98c3f..acc099eb 100644 --- a/client/pages/share/_slug.vue +++ b/client/pages/share/_slug.vue @@ -31,7 +31,7 @@ export default { return null }) if (!mediaItemShare) { - return error({ statusCode: 404, message: 'Not found' }) + return error({ statusCode: 404, message: 'Media item not found or expired' }) } return {