mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
Add usePathUrlStrategy to web setup instructions (#28120)
* Add `usePathUrlStrategy` to web setup instructions Supabase redirects do not work with Flutter's default URL strategy. * fix prettier issue
This commit is contained in:
1 parent
4a187616ac
commit
6e795f54ec
1 file changed
+12
-1
@@ -119,7 +119,18 @@ Add an intent-filter to enable deep linking:
|
||||
|
||||
</TabPanel>
|
||||
<TabPanel id="web" label="Web">
|
||||
There are no additional configurations.
|
||||
Supabase redirects do not work with Flutter's [default URL strategy](https://docs.flutter.dev/ui/navigation/url-strategies).
|
||||
We can switch to the path URL strategy as follows:
|
||||
|
||||
```dart
|
||||
import 'package:flutter_web_plugins/url_strategy.dart';
|
||||
|
||||
void main() {
|
||||
usePathUrlStrategy();
|
||||
runApp(ExampleApp());
|
||||
}
|
||||
```
|
||||
|
||||
</TabPanel>
|
||||
</Tabs>
|
||||
|
||||
|
||||
Reference in new issue
Block a user