Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Hack your Nuxt router!
Search
andoshin11
December 11, 2019
Technology
0
1.4k
Hack your Nuxt router!
Enhance your Nuxt application by extracting the router object and hacking it!
Here's how.
andoshin11
December 11, 2019
Tweet
Share
More Decks by andoshin11
See All by andoshin11
Introduction to gRPC Interceptors
andoshin11
0
79
カーナベルにおけるProtobuf二次利用例
andoshin11
0
160
Envoy External AuthZとgRPC Extensionを利用した「頑張らない」Microservices認証認可基盤
andoshin11
0
870
カーナベル株式会社2024年2月 エンジニアイベント資料
andoshin11
0
470
Private Cloudを支える最高のユーザーガイド運用技術
andoshin11
0
310
TS CompilerがVueを喋れても良いじゃないか
andoshin11
0
770
ain't giving up type-safe Express
andoshin11
2
470
Type Safe "Everything"
andoshin11
0
280
GatewayパターンとSchema駆動開発
andoshin11
7
1.5k
Other Decks in Technology
See All in Technology
DatabricksホストモデルでAIコーディング環境を構築する
databricksjapan
0
220
AI推進者の視点で見る、Bill OneのAI活用の今
sansantech
PRO
2
310
小さく始めるBCP ― 多プロダクト環境で始める最初の一歩
kekke_n
0
240
名刺メーカーDevグループ 紹介資料
sansan33
PRO
0
1k
生成AI時代にこそ求められるSRE / SRE for Gen AI era
ymotongpoo
4
1.7k
Meshy Proプラン課金した
henjin0
0
170
usermode linux without MMU - fosdem2026 kernel devroom
thehajime
0
170
JuliaTokaiとしてはこれが最後かもしれない(仮) for NGK2026S
antimon2
0
130
データ民主化のための LLM 活用状況と課題紹介(IVRy の場合)
wxyzzz
2
470
Werner Vogelsが14年間 問い続けてきたこと
yusukeshimizu
2
290
GSIが複数キー対応したことで、俺達はいったい何が嬉しいのか?
smt7174
3
120
予期せぬコストの急増を障害のように扱う――「コスト版ポストモーテム」の導入とその後の改善
muziyoshiz
0
600
Featured
See All Featured
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
0
260
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
110
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
720
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
117
100k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.4k
Evolving SEO for Evolving Search Engines
ryanjones
0
110
Utilizing Notion as your number one productivity tool
mfonobong
2
210
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
610
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
430
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.4k
Everyday Curiosity
cassininazir
0
120
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
9.8k
Transcript
Hack your Nuxt router! @andoshin11 Sample Code :https://github.com/andoshin11/studio-andy/pull/119
Routing in Nuxt.js • Place a file inside the pages
directory • Instantly becomes a new route • Incredibly simple and easy! • However...
By extracting router object • Easier to overlook route-meta •
Easier to type-check • Easier to make a url-builder • Easier to generate breadcrumbs
Using router module @nuxtjs/router
Quick Setup! • Install router-module
Quick Setup! • Install router-module • Register the module
Quick Setup! • Install router-module • Register the module •
Create router file
Tips: migrate from default router Step 1 $ nuxt build
Step 2 router.js will be generated Step 3 Copy and paste contents
Override RouteMeta type def
Making url-builder (preparation) • First we need a route resolver
to retrieve the entire ancestors
Making url-builder
Generate Breadcrumbs
Generate Breadcrumbs
Generate Breadcrumbs
Generate Breadcrumbs
Thank you!